diff --git a/bot/cogs/karma.py b/bot/cogs/karma.py index 7c79f0f..0f7fc0c 100644 --- a/bot/cogs/karma.py +++ b/bot/cogs/karma.py @@ -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) @@ -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