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

@ -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)

View File

@ -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...")

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))