little changes on tweet.lua and twitter_send.lua
This commit is contained in:
parent
5c106fb0c6
commit
ef6e633da9
@ -231,10 +231,10 @@ end
|
|||||||
return {
|
return {
|
||||||
description = "Random tweew from user",
|
description = "Random tweew from user",
|
||||||
usage = {
|
usage = {
|
||||||
"!tweet id [id]: Get a random tweet from the user with that ID",
|
"/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 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]: 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 name [name] last: Get a random tweet from the user with that name"
|
||||||
},
|
},
|
||||||
patterns = {
|
patterns = {
|
||||||
"^/tweet (id) ([%w_%.%-]+)$",
|
"^/tweet (id) ([%w_%.%-]+)$",
|
||||||
|
@ -38,7 +38,7 @@ function run(msg, matches)
|
|||||||
return "Fehler: "..response_code
|
return "Fehler: "..response_code
|
||||||
end
|
end
|
||||||
local data = json:decode(response_body)
|
local data = json:decode(response_body)
|
||||||
return "Tweet gesendet!"..data.id_str
|
return "Tweet gesendet!"
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -46,7 +46,6 @@ return {
|
|||||||
usage = "",
|
usage = "",
|
||||||
patterns = {"^/tw (.+)"},
|
patterns = {"^/tw (.+)"},
|
||||||
run = run,
|
run = run,
|
||||||
privileged = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
end
|
end
|
Reference in New Issue
Block a user