Add custom activity presence to ChaosBot on ready event
This commit is contained in:
parent
a51483f9da
commit
f2464e57f7
1 changed files with 3 additions and 0 deletions
|
@ -94,6 +94,9 @@ class ChaosBot:
|
||||||
|
|
||||||
async def on_ready(self) -> None:
|
async def on_ready(self) -> None:
|
||||||
logger.info(f"We have logged in as {self.bot.user}")
|
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:
|
def run(self) -> None:
|
||||||
if not isinstance(tk := self.config.get("token"), str):
|
if not isinstance(tk := self.config.get("token"), str):
|
||||||
|
|
Loading…
Add table
Reference in a new issue