5482c027 by Barry

Bug fix for display on blackjack

1 parent 0b1f6d5a
......@@ -117,11 +117,11 @@ class Blackjack:
elif self.dealer_hand.is_blackjack():
return (0, 'You lose. Total Winnings: {}')
elif self.player_points > self.dealer_points:
return (int(self.bet * 2), 'You win! Total Winnings {}')
return (int(self.bet * 2), 'You win! Total Winnings: {}')
elif self.player_points == self.dealer_points:
return (self.bet, 'push your bet is returned: {}')
else:
return (0, 'You lose: {}')
return (0, 'You lose. Total Winnings: {}')
def print_hand(self, show_dealer=False):
out_string = ""
......
No preview for this file type
......@@ -6,6 +6,7 @@ import datetime
import re
import operator
import pickle
import logging
import traceback
import sys
......@@ -38,14 +39,14 @@ muted_until = datetime.datetime.now()
client = discord.Client()
wolf = {}
logging.basicConfig(filename='hellsbot.log',level=logging.WARNING)
#####################
## Utility Functions
#####################
def log(message):
print("{} - {}".format(datetime.datetime.now().strftime('%Y/%m/%d %H:%M:%S'), message))
logging.warning("{} - {}".format(datetime.datetime.now().strftime('%Y/%m/%d %H:%M:%S'), message))
def format_exception(e):
exception_list = traceback.format_stack()
......@@ -674,11 +675,11 @@ Stuff:
if message.content.startswith('!raffle'):
client.send_message(message.channel, """Current Raffle Item:
Game: The Witness
Game: **The Witness**
Description:
Inspired by Myst, The Witness has the player explore an open world island filled with a number of natural and man-made structures. The player progresses by solving puzzles which are based on interactions with mazes presented on panels around the island.
*Inspired by Myst, The Witness has the player explore an open world island filled with a number of natural and man-made structures. The player progresses by solving puzzles which are based on interactions with mazes presented on panels around the island.*
Raffle Date: 1/29/2016
Raffle Date: **1/29/2016**
You will be contacted if you win. To win you must purchase tickets with the !buyticket command for 100 credits.
You can get extra credits by playing !slots and !bet <amount> on BlackJack.
......