#Code Not working

1 messages · Page 1 of 1 (latest)

twin zincBOT
#

Overriding the default provided on_message forbids any extra commands from running. To fix this, add a bot.process_commands(message) line at the end of your on_message. For example:

@bot.event  
async def on_message(message):  
 # Do some extra stuff here  
  
 await bot.process_commands(message)  

Alternatively, you can place your on_message logic into a listener. In this setup, you should not manually call bot.process_commands(). This also allows you to do multiple things asynchronously in response to a message. Example:

@bot.listen("on_message")  
async def whatever_you_want_to_call_it(message):  
 await do_stuff_here()  
 # Do not process commands here  

lean yew
#

you need the message_content intent

#

you can test by printing message.content, it would just be ""

rotund bough
#

@gusty nacelle /solved

rotund bough
#

@gusty nacelle please write that command