Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n committed Feb 21, 2024
1 parent 9396a1e commit 06657b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bot/cogs/karma.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ async def kasino_close(self, ctx: commands.Context, kasino_id: int, winner: int)
kasino = await self.bot.db.fetchrow('SELECT * FROM kasino WHERE id = $1', kasino_id)

if kasino is None:
return await ctx.author.send(f'Kasino with ID {kasino_id} is not open.')
return await ctx.reply(f'Kasino with ID {kasino_id} is not open.')

if kasino['discord_server_id'] != ctx.guild.id:
return await ctx.send(f'Kasino with ID {kasino_id} is not in this server.', delete_after=120)
Expand Down Expand Up @@ -968,8 +968,11 @@ def __init__(self, ctx: commands.Context, kasino: Record, option: int):
self.option = kasino['option1'] if option == 1 else kasino['option2']
self.ctx = ctx
self.kasino = kasino
label_str = f'Bet for option: {self.option}'
if len(label_str) > 45:
label_str = label_str[:42] + '...'
self.bet_amount_input = discord.ui.TextInput(
label=f'Bet amount for option: {self.option}',
label=label_str,
style=discord.TextStyle.short,
placeholder='100',
required=True
Expand Down

0 comments on commit 06657b8

Please sign in to comment.