🃏 Blackjack
This commit is contained in:
@ -50,7 +50,7 @@ class BlackjackCog(commands.Cog):
|
||||
@cog_ext.cog_subcommand(**params["blackjackBet"])
|
||||
async def blackjackBet(self, ctx, bet):
|
||||
"""Enter the game of blackjack with a bet."""
|
||||
await self.bot.games.blackjack.playerDrawHand(ctx, bet)
|
||||
await self.bot.games.blackjack.enterGame(ctx, bet)
|
||||
|
||||
@cog_ext.cog_subcommand(**params["blackjackStand"])
|
||||
async def blackjackStand(self, ctx, hand=""):
|
||||
|
@ -1,6 +1,6 @@
|
||||
"""A collection of all Gwendolyn functions."""
|
||||
|
||||
__all__ = ["Games" , "Money", "LookupFuncs", "StarWars"]
|
||||
__all__ = ["Games", "Money", "LookupFuncs", "StarWars"]
|
||||
|
||||
from .games import Money, Games
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -8,10 +8,10 @@ certifi==2020.12.5
|
||||
chardet==4.0.0
|
||||
colorama==0.4.4
|
||||
d20==1.1.0
|
||||
discord-py-slash-command==1.1.1
|
||||
discord-py-slash-command==1.1.2
|
||||
discord.py==1.7.1
|
||||
dnspython==2.1.0
|
||||
docutils==0.16
|
||||
docutils==0.17
|
||||
fandom-py==0.2.1
|
||||
finnhub-python==2.4.0
|
||||
gitdb==4.0.7
|
||||
@ -21,7 +21,7 @@ idna==2.10
|
||||
IMDbPY==2020.9.25
|
||||
isort==5.8.0
|
||||
jaraco.context==4.0.0
|
||||
lark-parser==0.9.0
|
||||
lark-parser==0.11.2
|
||||
lazy-object-proxy==1.6.0
|
||||
lxml==4.6.3
|
||||
mccabe==0.6.1
|
||||
|
@ -1,4 +1,12 @@
|
||||
{
|
||||
"missing parameters" : "Missing command parameters. Try using `!help [command]` to find out how to use the command.",
|
||||
"Can't log in": "Could not log in. Remember to write your bot token in the credentials.txt file"
|
||||
"Can't log in": "Could not log in. Remember to write your bot token in the credentials.txt file",
|
||||
"Blackjack all players standing": "All players are standing. The dealer now shows his cards and draws.",
|
||||
"Blackjack first round": ". You can also double down with \"/blackjack double\" or split with \"/blackjack split\"",
|
||||
"Blackjack commands": "You have 2 minutes to either hit or stand with \"/blackjack hit\" or \"/blackjack stand\"{}. It's assumed you're standing if you don't make a choice.",
|
||||
"Blackjack double": "Adding another {} GwendoBucks to {}'s bet and drawing another card.",
|
||||
"Blackjack different cards": "You can only split if your cards have the same value",
|
||||
"Blackjack split": "Splitting {}'s hand into 2. Adding their original bet to the second hand. You can use \"/blackjack hit/stand/double 1\" and \"/blackjack hit/stand/double 2\" to play the different hands.",
|
||||
"Blackjack started": "Blackjack game started. Use \"/blackjack bet [amount]\" to enter the game within the next 30 seconds.",
|
||||
"Blackjack going on": "There's already a blackjack game going on. Try again in a few minutes."
|
||||
}
|
@ -13,12 +13,12 @@ Contains utility functions used by parts of the bot.
|
||||
newString: str) -> str
|
||||
emojiToCommand(emoji: str) -> str
|
||||
"""
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import imdb
|
||||
from .helperClasses import Options
|
||||
import json # Used by longString(), getParams() and makeFiles()
|
||||
import logging # Used for logging
|
||||
import os # Used by makeFiles() to check if files exist
|
||||
import sys # Used to specify printing for logging
|
||||
import imdb # Used to disable logging for the module
|
||||
from .helperClasses import Options # Used by getParams()
|
||||
|
||||
|
||||
# All of this is logging configuration
|
||||
|
Reference in New Issue
Block a user