diff options
Diffstat (limited to 'pydis_site/apps')
-rw-r--r-- | pydis_site/apps/content/resources/guides/python-guides/setting-different-statuses-on-your-bot.md | 46 |
1 files changed, 24 insertions, 22 deletions
diff --git a/pydis_site/apps/content/resources/guides/python-guides/setting-different-statuses-on-your-bot.md b/pydis_site/apps/content/resources/guides/python-guides/setting-different-statuses-on-your-bot.md index 7735f128..a01ce8da 100644 --- a/pydis_site/apps/content/resources/guides/python-guides/setting-different-statuses-on-your-bot.md +++ b/pydis_site/apps/content/resources/guides/python-guides/setting-different-statuses-on-your-bot.md @@ -2,38 +2,40 @@ title: Setting Different Statuses to Set Your Bot description: How to personalize your Discord bot status --- -**Different Statuses to Set Your Bot:** + +#### Setting 'Playing' Status ```python -# Setting 'Playing' status await client.change_presence(activity=discord.Game(name="a game")) ``` + +#### Setting 'Streaming' Status ```python -# Setting 'Streaming' status await client.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url)) ``` + +#### Setting 'Listening' Status ```python -# Setting 'Listening' status await client.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song")) ``` + +#### Setting 'Watching' Status ```python -# Setting 'Watching' status await client.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="a movie")) ``` -**Add Optional Status as Well:** -```python -status=discord.Status.<status> -``` -**Available Statuses:** -```python -do_not_disturb (red icon) -``` -```python -idle (yellow icon) -``` -```python -online (default, green icon) -``` -```python -offline (gray icon) -``` +#### Add Optional Status as Well: + +* status=discord.Status.\<status> + +####Available Statuses: + +* do_not_disturb(red icon) + + +* idle(yellow icon) + + +* online(default, green icon) + + +* offline(gray icon) |