Skip to content

Commit

Permalink
fix: message content to get
Browse files Browse the repository at this point in the history
  • Loading branch information
Okaneeee committed Feb 3, 2024
1 parent 3c6ebba commit 7f52cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def on_message(message):
if message.content.startswith(PRFX):
cb_response = chatbot.process_input(message.content[len(PRFX):])
try:
await message.channel.send(which_function(cb_response, message.content[4:])) # type: ignore --- no error here
await message.channel.send(which_function(cb_response, message.content[len(PRFX):])) # type: ignore --- no error here
except ModuleNotFoundError:
await message.channel.send(cb_response)

Expand Down

0 comments on commit 7f52cb3

Please sign in to comment.