Update twitter_send.lua
This commit is contained in:
parent
4023ce7314
commit
6d388060c7
@ -16,16 +16,16 @@ local client = OAuth.new(consumer_key, consumer_secret, {
|
|||||||
|
|
||||||
function run(msg, matches)
|
function run(msg, matches)
|
||||||
if consumer_key:isempty() then
|
if consumer_key:isempty() then
|
||||||
return "Twitter Consumer Key is empty, write it in plugins/twitter.lua"
|
return "Twitter Consumer Key is empty, write it in plugins/twitter_send.lua"
|
||||||
end
|
end
|
||||||
if consumer_secret:isempty() then
|
if consumer_secret:isempty() then
|
||||||
return "Twitter Consumer Secret is empty, write it in plugins/twitter.lua"
|
return "Twitter Consumer Secret is empty, write it in plugins/twitter_send.lua"
|
||||||
end
|
end
|
||||||
if access_token:isempty() then
|
if access_token:isempty() then
|
||||||
return "Twitter Access Token is empty, write it in plugins/twitter.lua"
|
return "Twitter Access Token is empty, write it in plugins/twitter_send.lua"
|
||||||
end
|
end
|
||||||
if access_token_secret:isempty() then
|
if access_token_secret:isempty() then
|
||||||
return "Twitter Access Token Secret is empty, write it in plugins/twitter.lua"
|
return "Twitter Access Token Secret is empty, write it in plugins/twitter_send.lua"
|
||||||
end
|
end
|
||||||
|
|
||||||
if not is_sudo(msg) then
|
if not is_sudo(msg) then
|
||||||
@ -47,4 +47,4 @@ return {
|
|||||||
usage = "!tw [text]",
|
usage = "!tw [text]",
|
||||||
patterns = {"^!tw (.+)"},
|
patterns = {"^!tw (.+)"},
|
||||||
run = run
|
run = run
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user