1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Forbid a couple of things that can get tags and hangman stuck

This commit is contained in:
Phxntxm 2017-04-06 16:53:37 -05:00
parent d0f96db9b5
commit 063d64e86c

View file

@ -156,6 +156,11 @@ class Hangman:
await ctx.send("You took too long! Please look at your DM's next to as that's where I'm asking for the phrase you want to use")
return
forbidden_phrases = ['stop', 'delete', 'remove', 'end', 'create', 'start']
if msg.content in forbidden_phrases:
await ctx.send("Detected forbidden hangman phrase; current forbidden phrases are: \n{}".format("\n".join(forbidden_phrases)))
return
game = self.create(msg.content, ctx)
# Let them know the game has started, then print the current game so that the blanks are shown
await ctx.send(