Launch-Bugfixes!
- Cats sendet wieder - About: /start als Pattern - Shell: return vergessen
This commit is contained in:
parent
89ff787b09
commit
fc7e0d46f9
@ -197,11 +197,8 @@ end
|
||||
function create_plugin_set()
|
||||
enabled_plugins = {
|
||||
'control',
|
||||
'blacklist',
|
||||
'about',
|
||||
'ping',
|
||||
'whoami',
|
||||
'nick',
|
||||
'id',
|
||||
'echo',
|
||||
'imgblacklist',
|
||||
'gImages',
|
||||
@ -213,12 +210,9 @@ function create_plugin_set()
|
||||
'urbandictionary',
|
||||
'time',
|
||||
'reddit',
|
||||
'reddit_post',
|
||||
'xkcd',
|
||||
'slap',
|
||||
'commit',
|
||||
'pun',
|
||||
'currency',
|
||||
'shout',
|
||||
'set',
|
||||
'get',
|
||||
'patterns',
|
||||
|
@ -7,7 +7,8 @@ about.command = 'about'
|
||||
about.doc = '`Sendet Informationen über den Bot.`'
|
||||
|
||||
about.triggers = {
|
||||
'/about'
|
||||
'/about',
|
||||
'/start'
|
||||
}
|
||||
|
||||
function about:action(msg, config)
|
||||
|
@ -27,11 +27,11 @@ local apikey = cred_data.cat_apikey or "" -- apply for one here: http://thecatap
|
||||
function cats:action(msg, config)
|
||||
if matches[1] == 'gif' then
|
||||
local url = 'http://thecatapi.com/api/images/get?type=gif&apikey='..apikey
|
||||
local file = download_to_file(url)
|
||||
local file = download_to_file(url, 'miau.gif')
|
||||
utilities.send_document(self, msg.chat.id, file, nil, msg.message_id)
|
||||
else
|
||||
local url = 'http://thecatapi.com/api/images/get?type=jpg,png&apikey='..apikey
|
||||
local file = download_to_file(url)
|
||||
local file = download_to_file(url, 'miau.png')
|
||||
utilities.send_photo(self, msg.chat.id, file, nil, msg.message_id)
|
||||
end
|
||||
end
|
||||
|
@ -10,6 +10,7 @@ function shell:action(msg, config)
|
||||
|
||||
if msg.from.id ~= config.admin then
|
||||
utilities.send_reply(self, msg, config.errors.sudo)
|
||||
return
|
||||
end
|
||||
|
||||
local input = utilities.input(msg.text)
|
||||
|
Reference in New Issue
Block a user