Skip to content
← Back to Community
How do you do statuses for bot's?
Profile icon
EchoRando

How do you do custom statuses for bot's on Discord and making them play games, in Python if that makes sense

Voters
Profile icon
PujaRajistha
Comments
hotnewtop
Profile icon
DaGuacaplushy

@bot.event
async def on_ready():
activity = discord.Game(name="a game")
await bot.change_presence(status=discord.Status.online, activity=activity)

if you want something like Playing a game (assuming your bot variable is named bot and your not using cogs, if you are using cogs just reply that your using cogs)

Profile icon
btfuss

Well. If you know how to take input and print out stuff in your server, you know how to do games. You can make a status by creating a thread:
import threading
def status():
while True:
status = 'Good'
then google how to thread it (its different for different purposes)

Profile icon
EchoRando

@2plus2is4hoi didn't work

Profile icon
btfuss

@EchoRando well just set a string for the bots status, and then change it if you have to