✨ Hangman
This commit is contained in:
@ -24,7 +24,6 @@ class GamesCog(commands.Cog):
|
||||
async def give(self, ctx, *, content):
|
||||
commands = content.split(" ")
|
||||
if len(commands) == 2:
|
||||
print(commands)
|
||||
amount = int(commands[1])
|
||||
response = giveMoney("#"+str(ctx.message.author.id),commands[0],amount)
|
||||
await ctx.send(response)
|
||||
|
@ -35,7 +35,7 @@ class MiscCog(commands.Cog):
|
||||
logThis(content,str("Logged by "+ctx.message.author.display_name))
|
||||
|
||||
# Restarts the bot
|
||||
@commands.command(hidden = True)
|
||||
@commands.command(hidden = True,aliases=["stop"])
|
||||
async def restart(self, ctx):
|
||||
if "#"+str(ctx.message.author.id) in ["#266269899859427329", "#380732645602230272"]:
|
||||
await ctx.send("Pulling git repo and restarting...")
|
||||
|
@ -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