discord.py competing status for bot code example
Example: discord py bot status
# Status to Online (The green one)
await client.change_presence(status=discord.Status.online)
# Status to Idle (The orange one)
await client.change_presence(status=discord.Status.idle)
# Status to Do not disturb (The red one)
await client.change_presence(status=discord.Status.dnd)