Compare commits
No commits in common. "be80687e789d23e275062757193d4619c064da41" and "f7108de78ec5e7ada424d097df0670b65f0f8bd2" have entirely different histories.
be80687e78
...
f7108de78e
1 changed files with 3 additions and 11 deletions
10
main.py
10
main.py
|
@ -253,7 +253,6 @@ async def gif_command_handler(message: discord.Message, command: list[str]):
|
|||
|
||||
target = message.author.name
|
||||
sender = message.author.name
|
||||
|
||||
if len(message.mentions) > 0:
|
||||
target = message.mentions[0].name
|
||||
|
||||
|
@ -291,17 +290,10 @@ async def on_message(message: discord.Message):
|
|||
if message.author.bot == True:
|
||||
return
|
||||
|
||||
# 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.
|
||||
if message.content.startswith('nya') == False:
|
||||
return
|
||||
|
||||
# TODO: Do proper parsing of the message
|
||||
message_as_command = message.content.split("nya ")
|
||||
message_as_command = message_as_command[1].split(" ")
|
||||
message_as_command = message.content.split(" ")
|
||||
|
||||
command = message_as_command[0]
|
||||
|
||||
if command in GIF_COMMANDS:
|
||||
await gif_command_handler(message, message_as_command)
|
||||
|
||||
|
|
Loading…
Reference in a new issue