💵 Invest check

This commit is contained in:
Nikolaj Danger
2020-08-06 20:38:50 +02:00
parent cb31f3226c
commit d93ab1c915
5 changed files with 36 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import discord, asyncio, os, json
from discord.ext import commands
from funcs import logThis, triviaAnswer, triviaCountPoints, triviaStart, deleteGame, checkBalance, giveMoney, blackjackShuffle, blackjackStart, blackjackPlayerDrawHand, blackjackHit, blackjackDouble, blackjackFinish, blackjackSplit, blackjackStand
from funcs import logThis, triviaAnswer, triviaCountPoints, triviaStart, deleteGame, checkBalance, giveMoney, blackjackShuffle, blackjackStart, blackjackPlayerDrawHand, blackjackHit, blackjackDouble, blackjackFinish, blackjackSplit, blackjackStand, parseInvest
from gameLoops import blackjackLoop, fiar, runMonopoly, runHex
@ -33,7 +33,12 @@ class GamesCog(commands.Cog):
else:
logThis("I didn't understand that (error code 1222)",str(ctx.message.channel.id))
await ctx.send("I didn't understand that (error code 1222)")
# 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)))
# Runs a game of trivia
@commands.command()
async def trivia(self, ctx, *, content = ""):