cards command

This commit is contained in:
NikolajDanger
2020-07-29 14:27:59 +02:00
parent 7164faae15
commit 7d833b41b6

View File

@ -7,6 +7,7 @@ import codecs
import string import string
import json import json
import random import random
import math
from funcs import * from funcs import *
@ -487,6 +488,14 @@ async def parseCommands(message,content):
logThis("Shuffling the blackjack deck...") logThis("Shuffling the blackjack deck...")
await message.channel.send("Shuffling the 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: else:
await message.channel.send("I didn't quite understand that") await message.channel.send("I didn't quite understand that")