little changes on tweet.lua and twitter_send.lua

This commit is contained in:
Akamaru 2015-05-11 22:02:03 +02:00
parent 5c106fb0c6
commit ef6e633da9
2 changed files with 5 additions and 6 deletions

View File

@ -231,10 +231,10 @@ end
return {
description = "Random tweew from user",
usage = {
"!tweet id [id]: Get a random tweet from the user with that ID",
"!tweet id [id] last: Get a random tweet from the user with that ID",
"!tweet name [name]: Get a random tweet from the user with that name",
"!tweet name [name] last: Get a random tweet from the user with that name"
"/tweet id [id]: Get a random tweet from the user with that ID",
"/tweet id [id] last: Get a random tweet from the user with that ID",
"/tweet name [name]: Get a random tweet from the user with that name",
"/tweet name [name] last: Get a random tweet from the user with that name"
},
patterns = {
"^/tweet (id) ([%w_%.%-]+)$",

View File

@ -38,7 +38,7 @@ function run(msg, matches)
return "Fehler: "..response_code
end
local data = json:decode(response_body)
return "Tweet gesendet!"..data.id_str
return "Tweet gesendet!"
end
return {
@ -46,7 +46,6 @@ return {
usage = "",
patterns = {"^/tw (.+)"},
run = run,
privileged = true
}
end