This commit is contained in:
NikolajDanger
2020-08-06 23:05:20 +02:00
parent 5b949ccc9f
commit 205cc46a9c
6 changed files with 126 additions and 5 deletions

View File

@ -37,7 +37,13 @@ class GamesCog(commands.Cog):
# Invest GwendoBucks in the stock market
@commands.command(aliases=["i"])
async def invest(self, ctx, *, content = "check"):
await ctx.send(parseInvest(content,str(ctx.message.author.id)))
response = parseInvest(content,"#"+str(ctx.message.author.id))
if response.startswith("**"):
responses = response.split("\n")
em = discord.Embed(title=responses[0],description="\n".join(responses[1:]),colour=0x00FF00)
await ctx.send(embed=em)
else:
await ctx.send(response)
# Runs a game of trivia
@commands.command()