discordpy status

# Setting `Playing ` status
await bot.change_presence(activity=discord.Game(name="a game"))

# Setting `Streaming ` status
await bot.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))

# Setting `Listening ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))

# Setting `Watching ` status
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie"))

Here is what the above code is Doing:
1. First, we import the `discord.Activity` and `discord.Game` classes.
2. Then, we create a `discord.Game` object with the name “a game”.
3. Next, we create a `discord.Streaming` object with the name “My Stream” and the URL of our Twitch channel.
4. After that, we create a `discord.Activity` object with the type `discord.ActivityType.listening` and the name “a song”.
5. Finally, we create a `discord.Activity` object with the type `discord.ActivityType.watching` and the name “a movie”.
6. Then, we use the `change_presence()` method to change our bot’s status to the `discord.Game` object we created in step 2.
7. Next, we use the `change_presence()` method to change our bot’s status to the `discord.Streaming` object we created in step 3.
8. After that, we use the `change_presence()` method to change our bot’s status to the `discord.Activity` object we created in step 4.
9. Finally, we use the `change_presence()` method to change our bot’s status to the `discord.Activity` object we created in step 5.