aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Eric Fletcher <[email protected]>2022-04-02 12:54:48 -0400
committerGravatar Eric Fletcher <[email protected]>2022-04-02 12:54:48 -0400
commiteb86541fea929577bc80c50ed3fda06db135e4bd (patch)
treedda527822ac1ca7279a911d207d821e38234db09 /pydis_site
parentAdded Discord embed limits guide (#690) (diff)
Migrate Setting Different Statuses to Set Your Bot pin by Python bot to site
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/content/resources/guides/python-guides/setting-different-statuses-on-your-bot.md39
1 files changed, 39 insertions, 0 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
new file mode 100644
index 00000000..982088a3
--- /dev/null
+++ b/pydis_site/apps/content/resources/guides/python-guides/setting-different-statuses-on-your-bot.md
@@ -0,0 +1,39 @@
+---
+title: Setting Different Statuses to Set Your Bot
+description: How to personalize your Discord bot status
+---
+**Different Statuses to Set Your Bot:**
+```python
+# Setting 'Playing' status
+await client.change_presence(activity=discord.Game(name="a game"))
+```
+```python
+# Setting 'Streaming' status
+await client.change_presence(activity=discord.Streaming(name="My Stream", url=my_twitch_url))
+```
+```python
+# Setting 'Listening' status
+await client.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name="a song"))
+```
+```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)
+``` \ No newline at end of file