Fixe Help + /start

This commit is contained in:
Andreas Bielawski 2016-08-25 14:35:11 +02:00
parent 917a6f0ac0
commit a9edd380c4
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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