Compare commits
No commits in common. "39b9641f118afa263c9f6160c2d8a82e93d0ba9a" and "be80687e789d23e275062757193d4619c064da41" have entirely different histories.
39b9641f11
...
be80687e78
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -293,11 +293,11 @@ async def on_message(message: discord.Message):
|
||||||
|
|
||||||
# Should prevent the bot from being accidentally triggered from now on. Also will make
|
# Should prevent the bot from being accidentally triggered from now on. Also will make
|
||||||
# the people here have to say nya more often which is always a bonus.
|
# the people here have to say nya more often which is always a bonus.
|
||||||
if message.content.lower().startswith('nya') == False:
|
if message.content.startswith('nya') == False:
|
||||||
return
|
return
|
||||||
|
|
||||||
# TODO: Do proper parsing of the message
|
# TODO: Do proper parsing of the message
|
||||||
message_as_command = message.content.lower().split("nya ")
|
message_as_command = message.content.split("nya ")
|
||||||
message_as_command = message_as_command[1].split(" ")
|
message_as_command = message_as_command[1].split(" ")
|
||||||
|
|
||||||
command = message_as_command[0]
|
command = message_as_command[0]
|
||||||
|
|
Loading…
Reference in a new issue