Display name

This commit is contained in:
Marco Loewe 2023-11-14 11:13:18 +01:00
parent d6872b37ab
commit e03d4ad637

2
bot.py
View File

@ -30,7 +30,7 @@ async def on_ready():
@tree.command(name = 'cool', description = 'Check how cool you are!', guild=discord.Object(id='745287426402156555'))
async def cool(ctx: discord.Interaction):
cool_factor = round(random.uniform(0, 100), 2)
await ctx.response.send_message(f'{ctx.user} is {cool_factor}% cool!')
await ctx.response.send_message(f'{ctx.user.display_name} is {cool_factor}% cool!')
@tree.command(name = 'update', description = 'Pulls the latest version from the repository', guild=discord.Object(id='745287426402156555'))
@app_commands.checks.has_role(745295653651087381)