✨ cards command
This commit is contained in:
@ -7,6 +7,7 @@ import codecs
|
||||
import string
|
||||
import json
|
||||
import random
|
||||
import math
|
||||
|
||||
from funcs import *
|
||||
|
||||
@ -487,6 +488,14 @@ async def parseCommands(message,content):
|
||||
logThis("Shuffling the blackjack deck...")
|
||||
await message.channel.send("Shuffling the deck...")
|
||||
|
||||
elif content.startswith("blackjack cards"):
|
||||
with open("resources/games/blackjackCards.txt","r") as f:
|
||||
for line in f:
|
||||
cardsLeft += 1
|
||||
|
||||
decksLeft = math.floor(cardsLeft/52)
|
||||
await message.channel.send(str(cardsLeft)+" cards, "+str(decksLeft)+" decks")
|
||||
|
||||
else:
|
||||
await message.channel.send("I didn't quite understand that")
|
||||
|
||||
|
Reference in New Issue
Block a user