🐛 Users that aren't the player can't end the hangman game

This commit is contained in:
NikolajDanger
2021-04-06 15:11:18 +02:00
parent cb05caded7
commit bce8fb1136

View File

@ -66,6 +66,8 @@ class Hangman():
if game is None:
await ctx.send("There's no game going on")
elif f"#{ctx.author.id}" != game["player"]:
await ctx.send("You can't end a game you're not in")
else:
self.bot.database["hangman games"].delete_one({"_id":channel})