✨ Better credentials
This commit is contained in:
@ -34,7 +34,7 @@ class GamesCog(commands.Cog):
|
||||
# Invest GwendoBucks in the stock market
|
||||
@commands.command(aliases=["i"])
|
||||
async def invest(self, ctx, *, content = "check"):
|
||||
response = parseInvest(content,"#"+str(ctx.message.author.id))
|
||||
response = parseInvest(content,"#"+str(ctx.message.author.id),self.client.finnhubClient)
|
||||
if response.startswith("**"):
|
||||
responses = response.split("\n")
|
||||
em = discord.Embed(title=responses[0],description="\n".join(responses[1:]),colour=0x00FF00)
|
||||
@ -275,7 +275,7 @@ class GamesCog(commands.Cog):
|
||||
# Runs a game of Hangman
|
||||
@commands.command(aliases = ["hm"])
|
||||
async def hangman(self, ctx, *, content = "start"):
|
||||
await runHangman(ctx.message.channel,"#"+str(ctx.message.author.id),content)
|
||||
await runHangman(ctx.message.channel,"#"+str(ctx.message.author.id),self.client.credentials.wordnikKey,content)
|
||||
|
||||
def setup(client):
|
||||
client.add_cog(GamesCog(client))
|
@ -25,6 +25,6 @@ class ReactionCog(commands.Cog):
|
||||
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)
|
||||
await runHangman(channel,"#"+str(user.id),command="guess "+guess)
|
||||
def setup(client):
|
||||
client.add_cog(ReactionCog(client))
|
||||
|
Reference in New Issue
Block a user