#Cannot have text command and message listener

1 messages · Page 1 of 1 (latest)

soft jay
#

Why works only my message listener?

heavy umbra
#

Because you're probably using @bot.event which is overriting the built in on_message function that also processes commands.

Use @bot.listen() This way you're not overriding the built in on_message method and instead just adding a new listener to do what you want when an on_message event fires.

#

or add await bot.process_commands(message) after all of your if statements and whatnot, basically it should be executed last if no other conditions are met