Skip to content

Commit

Permalink
__init__.py を更新
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmreg authored Jan 30, 2024
1 parent d370e8a commit 1a19b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/RT/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ def cog_unload(self) -> None:
async def status_updater(self) -> None:
# RTのステータスを更新するループです。
await self.bot.wait_until_ready()

now_text, now_function = self.STATUS_TEXTS[self._now_status_index]
await self.bot.change_presence(
activity=discord.Activity(
name=(now := self.STATUS_TEXTS[self._now_status_index])[0].format(self.bot.command_prefix[0], now[1](self.bot)),
name=(now := now_text.format(self.bot.command_prefix[0], now_function(self.bot))),
type=discord.ActivityType.watching, state="Free-RT Bot",
details=f"PING:{self._get_ping()}\n絶賛稼働中...",
timestamps={"start": self._start_time},
Expand Down

0 comments on commit 1a19b9c

Please sign in to comment.