master
Aevann1 2022-01-28 10:14:00 +02:00
parent f9197ffd03
commit e92bfcaeef
1 changed files with 5 additions and 3 deletions

View File

@ -64,8 +64,10 @@ class Blackjack:
if self.command_word in in_text: if self.command_word in in_text:
for word in in_text.split(): for word in in_text.split():
if self.command_word in word: if self.command_word in word:
try:
wager = word[len(self.command_word):] wager = word[len(self.command_word):]
wager_value = int(wager) wager_value = int(wager)
except: break
if (wager_value < self.minimum_bet): if (wager_value < self.minimum_bet):
break break