make commands case insensetive
This commit is contained in:
2
bot.py
2
bot.py
@@ -22,7 +22,7 @@ def on_message(msg):
|
|||||||
return
|
return
|
||||||
text = msg['text']
|
text = msg['text']
|
||||||
|
|
||||||
command = text.split(' ')[0]
|
command = text.split(' ')[0].lower()
|
||||||
arguments = text.split(' ')[1:]
|
arguments = text.split(' ')[1:]
|
||||||
|
|
||||||
if command in ['add', '/add']:
|
if command in ['add', '/add']:
|
||||||
|
|||||||
Reference in New Issue
Block a user