Display name
This commit is contained in:
parent
d6872b37ab
commit
e03d4ad637
2
bot.py
2
bot.py
|
|
@ -30,7 +30,7 @@ async def on_ready():
|
||||||
@tree.command(name = 'cool', description = 'Check how cool you are!', guild=discord.Object(id='745287426402156555'))
|
@tree.command(name = 'cool', description = 'Check how cool you are!', guild=discord.Object(id='745287426402156555'))
|
||||||
async def cool(ctx: discord.Interaction):
|
async def cool(ctx: discord.Interaction):
|
||||||
cool_factor = round(random.uniform(0, 100), 2)
|
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'))
|
@tree.command(name = 'update', description = 'Pulls the latest version from the repository', guild=discord.Object(id='745287426402156555'))
|
||||||
@app_commands.checks.has_role(745295653651087381)
|
@app_commands.checks.has_role(745295653651087381)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user