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:
)
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:
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"