Remove the author.name from various places
This commit is contained in:
parent
51ed73c996
commit
960beb36ff
1 changed files with 4 additions and 5 deletions
|
@ -50,7 +50,7 @@ async def on_ready():
|
||||||
@has_role(worshipper_role_name)
|
@has_role(worshipper_role_name)
|
||||||
async def hello(ctx):
|
async def hello(ctx):
|
||||||
author_name = ctx.author.name
|
author_name = ctx.author.name
|
||||||
await ctx.channel.send(f'hi, `{author_name}` :blush:')
|
await ctx.channel.send(f'hi, {author_name} :blush:')
|
||||||
|
|
||||||
@hello.error
|
@hello.error
|
||||||
async def hello_error(ctx, error):
|
async def hello_error(ctx, error):
|
||||||
|
@ -88,13 +88,12 @@ async def now(ctx):
|
||||||
@bot.command(name='rec', help='Start the recorder')
|
@bot.command(name='rec', help='Start the recorder')
|
||||||
@has_role(boss_role_name)
|
@has_role(boss_role_name)
|
||||||
async def rec(ctx):
|
async def rec(ctx):
|
||||||
await ctx.channel.send(f'soon...')
|
await ctx.channel.send('soon...')
|
||||||
|
|
||||||
@rec.error
|
@rec.error
|
||||||
async def rec_error(ctx, error):
|
async def rec_error(ctx, error):
|
||||||
if isinstance(error, CheckFailure):
|
if isinstance(error, CheckFailure):
|
||||||
author_name = ctx.author.name
|
await ctx.channel.send('access denied')
|
||||||
await ctx.channel.send(f'{author_name} access denied')
|
|
||||||
|
|
||||||
# Helper functions
|
# Helper functions
|
||||||
async def query_playhead():
|
async def query_playhead():
|
||||||
|
@ -107,7 +106,7 @@ async def query_playhead():
|
||||||
logger_discord.error('Cannot connect to the playhead!')
|
logger_discord.error('Cannot connect to the playhead!')
|
||||||
head_name = playhead['name']
|
head_name = playhead['name']
|
||||||
head_prio = playhead['prio']
|
head_prio = playhead['prio']
|
||||||
return f'Now playing {head_name}'
|
return f'now playing {head_name}'
|
||||||
|
|
||||||
async def query_database():
|
async def query_database():
|
||||||
global database
|
global database
|
||||||
|
|
Loading…
Add table
Reference in a new issue