Parse messages and nick to lowercase before parsing
This commit is contained in:
parent
b8cae4e134
commit
1f7b6d9863
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -264,9 +264,9 @@ class bot:
|
||||||
for cmd in cmds.data:
|
for cmd in cmds.data:
|
||||||
triggers = [cmd]
|
triggers = [cmd]
|
||||||
triggers.extend(cmds.data[cmd]["aliases"])
|
triggers.extend(cmds.data[cmd]["aliases"])
|
||||||
triggers = list(call.replace("$BOTNICK", self.nick) for call in triggers)
|
triggers = list(call.replace("$BOTNICK", self.nick.lower()) for call in triggers)
|
||||||
if mfind(
|
if mfind(
|
||||||
message,
|
message.lower(),
|
||||||
triggers,
|
triggers,
|
||||||
cmds.data[cmd]["prefix"],
|
cmds.data[cmd]["prefix"],
|
||||||
):
|
):
|
||||||
|
|
Loading…
Reference in a new issue