mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Add a ✨dynamic✨ lupupa warning x2
This commit is contained in:
parent
7d4b4be66d
commit
a59d16738d
1 changed files with 3 additions and 1 deletions
|
@ -29,8 +29,10 @@ class Events(commands.Cog):
|
|||
if lupupa_warning and now.strftime("%A") == "Thursday":
|
||||
if now.time() > time(15, 15):
|
||||
text = lupupa_recovery_text
|
||||
status = discord.Status.idle
|
||||
else:
|
||||
text = lupupa_warning_text
|
||||
status = discord.status.dnd
|
||||
if self.bot.activity:
|
||||
if self.bot.activity.name == text:
|
||||
return
|
||||
|
@ -39,7 +41,7 @@ class Events(commands.Cog):
|
|||
name=text,
|
||||
type=discord.ActivityType.playing
|
||||
),
|
||||
status=discord.Status.dnd
|
||||
status=status
|
||||
)
|
||||
else:
|
||||
await self.bot.change_presence()
|
||||
|
|
Loading…
Reference in a new issue