fix(bot): 🐛 p.call and p.skip not warning about scheduled shutdown.

This commit is contained in:
Nyeki.py
2024-10-24 01:02:27 -03:00
parent b3184fafdf
commit afad9250b6
4 changed files with 34 additions and 10 deletions
+8 -8
View File
@@ -238,8 +238,8 @@ class Calls(base.Cog):
f"☎️ {secrets.choice(constants.MSGS_PHONE_CALLING)}\n"
)
+ (
"⚡ The phone will be hung up soon due to a scheduled restart.\n"
if self.bot.shutdown.value
"⚠️ The phone will be hung up soon due to a scheduled restart.\n"
if self.bot.scheduled_shutdown.value
else ""
)
+ msg_phone_answered
@@ -254,8 +254,8 @@ class Calls(base.Cog):
f"☎️ {secrets.choice(constants.MSGS_PHONE_CALLING)}\n"
)
+ (
"⚡ The phone will be hung up soon due to a scheduled restart.\n"
if self.bot.shutdown.value
"⚠️ The phone will be hung up soon due to a scheduled restart.\n"
if self.bot.scheduled_shutdown.value
else ""
)
)
@@ -435,8 +435,8 @@ class Calls(base.Cog):
f"☎️ You skipped the call.\n"
)
+ (
"⚡ The phone will be hung up soon due to a scheduled restart.\n"
if self.bot.shutdown.value
"⚠️ The phone will be hung up soon due to a scheduled restart.\n"
if self.bot.scheduled_shutdown.value
else ""
)
+ (
@@ -459,8 +459,8 @@ class Calls(base.Cog):
f"☎️ {secrets.choice(constants.MSGS_PHONE_CALLING)}\n"
)
+ (
"⚡ The phone will be hung up soon due to a scheduled restart.\n"
if self.bot.shutdown.value
"⚠️ The phone will be hung up soon due to a scheduled restart.\n"
if self.bot.scheduled_shutdown.value
else ""
)
)