diff --git a/cogs/GamesCog.py b/cogs/GamesCog.py index 586be93..2ccf90d 100644 --- a/cogs/GamesCog.py +++ b/cogs/GamesCog.py @@ -50,8 +50,8 @@ class GamesCog(commands.Cog): question, answers, correctAnswer = triviaStart(str(ctx.message.channel.id)) if answers != "": results = "**"+question+"**\n" - for answer in range(len(answers)): - results += chr(answer+97) + ") "+answers[answer]+"\n" + for x, answer in enumerate(answers): + results += chr(x+97) + ") "+answer+"\n" await ctx.send(results) diff --git a/funcs/miscFuncs.py b/funcs/miscFuncs.py index 5719bab..8f4f206 100644 --- a/funcs/miscFuncs.py +++ b/funcs/miscFuncs.py @@ -278,7 +278,7 @@ def addToDict(userID,userName): with open("resources/games/games.json","r") as f: games = json.load(f) - + if userName.lower() in games["users"]: money = games["users"][userName.lower()] del games["users"][userName.lower()]