- Bot-Username wird direkt aus den self-Infos genommen

- Portiere service_entergroup
This commit is contained in:
Andreas Bielawski
2016-06-18 13:42:30 +02:00
parent aaf05df495
commit f891672572
3 changed files with 59 additions and 4 deletions

View File

@ -74,8 +74,8 @@ function bot:on_msg_receive(msg, config) -- The fn run whenever a message is rec
end
-- gsub out user name if multiple bots are in the same group
msg.text = string.gsub(msg.text, '@'..config.bot_user_name, "")
msg.text_lower = string.gsub(msg.text, '@'..string.lower(config.bot_user_name), "")
msg.text = string.gsub(msg.text, '@'..self.info.username, "")
msg.text_lower = string.gsub(msg.text, '@'..string.lower(self.info.username), "")
msg = pre_process_msg(self, msg, config)