Make a discord Python bot code that pings me in DMs every 5 seconds.
Jump to turn (9)
- 1Make a discord Python bot code that pings me in DMs every 5 seconds.
- 2Could you modify the code so that it automatically gets the discord user id it w
- 3Could you format the code more better?
- 4Never mind, start over again.
- 5There is an error: print(f"Loqged in as {client.user.name} ({client.user.id})")
- 6The same error still appears.
- 7This error: print(f"Loqged in as {client.user.name } ({client.user.id})") Syntax
- 8Same error still appears.
- 9It says id is not a known member of None
- User
Make a discord Python bot code that pings me in DMs every 5 seconds.
- Assistant
Sure! Here's an example code for a simple Discord bot using the discord.py library that will send you a direct message every 5 seconds:
python