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)
|
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.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.triggers = {
|
||||||
'/about',
|
'^/about$',
|
||||||
'/start'
|
'^/start$'
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -10,7 +10,8 @@ function help:init(config)
|
|||||||
"^/hilfe (.+)",
|
"^/hilfe (.+)",
|
||||||
"^/help (.+)",
|
"^/help (.+)",
|
||||||
"^/(hilfe)_(.+)",
|
"^/(hilfe)_(.+)",
|
||||||
"^/hilfe$"
|
"^/hilfe$",
|
||||||
|
"^/help$"
|
||||||
}
|
}
|
||||||
help.inline_triggers = {
|
help.inline_triggers = {
|
||||||
"^hilfe (.+)",
|
"^hilfe (.+)",
|
||||||
@ -38,7 +39,7 @@ end
|
|||||||
function help:action(msg, config, matches)
|
function help:action(msg, config, matches)
|
||||||
if matches[2] then
|
if matches[2] then
|
||||||
input = matches[2]
|
input = matches[2]
|
||||||
elseif matches[1] ~= '/hilfe' then
|
elseif matches[1] ~= '/hilfe' and matches[1] ~= '/help' then
|
||||||
input = matches[1]
|
input = matches[1]
|
||||||
else
|
else
|
||||||
input = nil
|
input = nil
|
||||||
|
Reference in New Issue
Block a user