From e5b867d94214b8dd60931afd3680b98471cd0f0d Mon Sep 17 00:00:00 2001 From: Georgios Atheridis Date: Tue, 17 Jan 2023 09:21:33 +0000 Subject: [PATCH] update discord link fail message to include more mods --- ihaspeks/commands/discord.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ihaspeks/commands/discord.py b/ihaspeks/commands/discord.py index 2a93177..9db7976 100644 --- a/ihaspeks/commands/discord.py +++ b/ihaspeks/commands/discord.py @@ -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" -- 2.30.2