Another small bot update

This commit is contained in:
OTCv8
2019-10-28 02:03:53 +01:00
parent 12e5c1557c
commit 017fa290b4
3 changed files with 48 additions and 0 deletions

View File

@@ -278,6 +278,7 @@ function executeBot(config, storage, panel, msgCallback)
-- listen(name, callback) -- callback = function(text, channelId, pos)
context.listen = function(name, callback)
if not name then return context.error("listen: invalid name") end
name = name:lower()
context.onTalk(function(name2, level, mode, text, channelId, pos)
if name == name2:lower() then