aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/events/trivianight/trivianight.py
diff options
context:
space:
mode:
authorGravatar Shom770 <[email protected]>2021-11-06 11:20:57 -0400
committerGravatar Shom770 <[email protected]>2022-02-09 18:13:37 -0500
commit73200817a80c19f48ab8c5af74e004d6c81841d5 (patch)
tree91ff786a419abee12646df35afb5dbaa567945a4 /bot/exts/events/trivianight/trivianight.py
parentfixing rivianight list formatting (diff)
more bug fixes/sorting
Diffstat (limited to 'bot/exts/events/trivianight/trivianight.py')
-rw-r--r--bot/exts/events/trivianight/trivianight.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/events/trivianight/trivianight.py b/bot/exts/events/trivianight/trivianight.py
index 96493f2f..75d2c671 100644
--- a/bot/exts/events/trivianight/trivianight.py
+++ b/bot/exts/events/trivianight/trivianight.py
@@ -71,9 +71,7 @@ class TriviaNight(commands.Cog):
if message.attachments:
json_text = (await message.attachments[0].read()).decode("utf8")
else:
- json_text = message.content.replace("```", "").replace("json", "")
- else:
- json_text = message.content.replace("```", "").replace("json", "")
+ json_text = message.content.replace("```", "").replace("json", "").replace("\n", "")
try:
serialized_json = loads(json_text)