Answer the question
In order to leave comments, you need to log in
How to make the bot in discord and commands able to read, and messages too?
I am writing a bot in python and ran into a problem. If I write:
He, of course, reads commands, but if I write after that:
client = commands.Bot( command_prefix = '!')
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('$hello'):
await message.channel.send('Hello!')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question