Add custom activity presence to ChaosBot on ready event

This commit is contained in:
Edgar P. Burkhart 2025-03-23 13:42:28 +01:00
parent a51483f9da
commit f2464e57f7
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -94,6 +94,9 @@ class ChaosBot:
async def on_ready(self) -> None:
logger.info(f"We have logged in as {self.bot.user}")
emo = discord.PartialEmoji.from_str("🥑")
activity = discord.CustomActivity("Génère du chaos", emoji=emo)
await self.bot.change_presence(activity=activity)
def run(self) -> None:
if not isinstance(tk := self.config.get("token"), str):