✨ Hangman
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user