diff options
author | 2021-12-28 00:30:51 -0500 | |
---|---|---|
committer | 2022-02-09 18:13:37 -0500 | |
commit | f48a03318b9a67563807f0a081430026ecfe8419 (patch) | |
tree | e65a6425ce911c1b8a547b55195e6db63d250b2f | |
parent | remove UserScore (diff) |
fix \ with if
-rw-r--r-- | bot/exts/events/trivianight/trivianight.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/exts/events/trivianight/trivianight.py b/bot/exts/events/trivianight/trivianight.py index 18e0dce1..0971ea2a 100644 --- a/bot/exts/events/trivianight/trivianight.py +++ b/bot/exts/events/trivianight/trivianight.py @@ -74,8 +74,10 @@ class TriviaNightCog(commands.Cog): json_text = (await ctx.message.attachments[0].read()).decode("utf8") elif not to_load: raise commands.BadArgument("You didn't attach an attachment nor link a message!") - elif to_load.startswith("https://discord.com/channels") or \ - to_load.startswith("https://discordapp.com/channels"): + elif ( + to_load.startswith("https://discord.com/channels") + or to_load.startswith("https://discordapp.com/channels") + ): channel_id, message_id = to_load.split("/")[-2:] channel = await ctx.guild.fetch_channel(int(channel_id)) message = await channel.fetch_message(int(message_id)) |