🐛 Users that aren't the player can't end the hangman game
This commit is contained in:
@ -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})
|
||||
|
||||
|
Reference in New Issue
Block a user