From a9edd380c4ec7102cab3a329c15aea70aead8bed Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Thu, 25 Aug 2016 14:35:11 +0200 Subject: [PATCH] Fixe Help + /start --- otouto/plugins/about.lua | 4 ++-- otouto/plugins/help.lua | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/otouto/plugins/about.lua b/otouto/plugins/about.lua index 650fe4f..20ca4e1 100644 --- a/otouto/plugins/about.lua +++ b/otouto/plugins/about.lua @@ -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 diff --git a/otouto/plugins/help.lua b/otouto/plugins/help.lua index 4d3aaf0..007a172 100644 --- a/otouto/plugins/help.lua +++ b/otouto/plugins/help.lua @@ -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