Delta888
Delta888

Reputation: 94

How to set discord.py bot status to listening/watching/etc

BTW I'm using rewrite version

Here is the code for original version, which seems not to work on rewrite

await bot.change_prescence(activity=discord.Game('sample text', type=2))

How do I make the bot status listening?

Upvotes: 1

Views: 2348

Answers (2)

Just for fun
Just for fun

Reputation: 4225

Here are all possible Activities

# "Playing"
await bot.change_presence(activity=discord.Game(name="Game"))

# "Listening to"
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="Some Song"))

# "Watching"
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="A movie"))

# "Streaming"
await bot.change_presence(activity=discord.Streaming(name="Drums on!", url="https://www.twitch.tv/the8bitdrummer"))

Upvotes: 3

Jawad
Jawad

Reputation: 2041

await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))

Upvotes: 0

Related Questions