Discord bot (py) Dont't reply to messages on any servers but reply to direct dms
I build a discord Bot with python using discord.py an as I write the (example $hello), it reply only on private dms not on any servers messages. I olready gived the bot admin on the server but still not doing anything.
My py code is:
intents = discord.Intents.default()
intents.members = True
client = discord.Client(intents=intents)
async def on_message(message):
if message.content.startswith('$hello'):
print(message.content)
await message.channel.send('Hello')
client.run(token)
Also it not write anything to the console if I send the message on a dc server.
There is no firewall rule what can cose the issue I olrady chacked it.