diff options
author | 2022-04-10 11:31:12 -0400 | |
---|---|---|
committer | 2022-04-10 16:29:55 -0400 | |
commit | c0a15c94861cce9e56eebb6307e09bb3cfd46de3 (patch) | |
tree | d51c946b8724910e18639c109b995906c0897af1 /pydis_site | |
parent | Merge remote-tracking branch 'origin/695-setting-different-statuses-on-your-b... (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.md | 6 |
1 files changed, 6 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 index a01ce8da..53390416 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,6 +2,12 @@ title: Setting Different Statuses to Set Your Bot description: How to personalize your Discord bot status --- +**Please note:** + +If you want to change the bot status, it is suggested to not do it during the on_ready event, since it would be called +many times and making an API call on that event has a chance to disconnect the bot. +Instead, set the desired status using the activity / status kwarg of commands.Bot, for example +`bot = commands.Bot(command_prefix="!", activity=..., status=...)` #### Setting 'Playing' Status ```python |