Hangman

This commit is contained in:
NikolajDanger
2020-08-08 19:13:43 +02:00
parent 1490cf81eb
commit 2daefb9585
15 changed files with 225 additions and 71 deletions

View File

@@ -1,6 +1,6 @@
from discord.ext import commands
from funcs import logThis, fiarReactionTest, monopolyReactionTest, emojiToCommand, fiar, runMonopoly
from funcs import logThis, fiarReactionTest, monopolyReactionTest, emojiToCommand, fiar, runMonopoly, hangmanReactionTest, runHangman
class ReactionCog(commands.Cog):
def __init__(self, client):
@@ -23,5 +23,8 @@ class ReactionCog(commands.Cog):
await fiar(channel," place "+str(piece)+" "+str(place),user.id)
elif monopolyReactionTest(channel,message):
await runMonopoly(channel,"roll","#"+str(user.id))
elif hangmanReactionTest(channel,message):
guess = chr(ord(reaction.emoji)-127397)
await runHangman(channel,"#"+str(user.id),"guess "+guess)
def setup(client):
client.add_cog(ReactionCog(client))