Fixe Help + /start
This commit is contained in:
parent
917a6f0ac0
commit
a9edd380c4
@ -8,8 +8,8 @@ about.doc = '`Sendet Informationen über den Bot.`'
|
||||
function about:init(config)
|
||||
about.text = config.about_text..'\n[Brawlbot](https://github.com/Brawl345/Brawlbot-v2) v'..bot.version..', basierend auf [Otouto](http://github.com/topkecleon/otouto) von topkecleon.'
|
||||
about.triggers = {
|
||||
'/about',
|
||||
'/start'
|
||||
'^/about$',
|
||||
'^/start$'
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -10,7 +10,8 @@ function help:init(config)
|
||||
"^/hilfe (.+)",
|
||||
"^/help (.+)",
|
||||
"^/(hilfe)_(.+)",
|
||||
"^/hilfe$"
|
||||
"^/hilfe$",
|
||||
"^/help$"
|
||||
}
|
||||
help.inline_triggers = {
|
||||
"^hilfe (.+)",
|
||||
@ -38,7 +39,7 @@ end
|
||||
function help:action(msg, config, matches)
|
||||
if matches[2] then
|
||||
input = matches[2]
|
||||
elseif matches[1] ~= '/hilfe' then
|
||||
elseif matches[1] ~= '/hilfe' and matches[1] ~= '/help' then
|
||||
input = matches[1]
|
||||
else
|
||||
input = nil
|
||||
|
Reference in New Issue
Block a user