update discord link fail message to include more mods
authorGeorgios Atheridis <georgios@atheridis.org>
Tue, 17 Jan 2023 09:21:33 +0000 (09:21 +0000)
committerGeorgios Atheridis <georgios@atheridis.org>
Tue, 17 Jan 2023 09:21:33 +0000 (09:21 +0000)
ihaspeks/commands/discord.py

index 2a9317704515648405e68d44219e23ae25532467..9db7976314f59804b4abfc283eb818631bab6569 100644 (file)
@@ -16,6 +16,10 @@ DISCORD_API = os.getenv("DISCORD_API")
 
 PEKS_CHANNEL_ID = 806590801311301652
 
+msg_fail = "Sorry, I'm unable to create a discord link at this time. \
+    Please contact IHasPeks#6552, Yorugo#4966, Mél#0700, or GoertRobin#7286 \
+    on discord to send you an invite."
+
 
 def main(bot: Bot, message: Message):
     try:
@@ -33,10 +37,7 @@ def main(bot: Bot, message: Message):
         )
     except Exception as e:
         logger.exception(e)
-        msg = "Sorry, I'm unable to create a discord link at this time. \
-            Please contact IHasPeks#6552 or Yorugo#4966 \
-            on discord to send you an invite."
-        tools.smart_privmsg.send(bot, message, msg, reply=message.tags["id"])
+        tools.smart_privmsg.send(bot, message, msg_fail, reply=message.tags["id"])
         return
 
     if response.status_code != 200:
@@ -44,10 +45,7 @@ def main(bot: Bot, message: Message):
             f"Unable to create a discord link. \
             Status code: {response.status_code}. With content: {response.content}"
         )
-        msg = "Sorry, I'm unable to create a discord link at this time. \
-            Please contact IHasPeks#6552 or Yorugo#4966 \
-            on discord to send you an invite."
-        tools.smart_privmsg.send(bot, message, msg, reply=message.tags["id"])
+        tools.smart_privmsg.send(bot, message, msg_fail, reply=message.tags["id"])
         return
     msg = f"https://discord.gg/{response.json()['code']} don't forget to verify\
         yourselves on #rules channel, enjoy your time! Discordblob"