Skip to content

Commit

Permalink
fix anonymous_staff not reading the config value properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ihaveamac committed Jun 21, 2021
1 parent 7c4dabc commit ba72059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ async def on_message(message):
await progress_msg.edit(content=f'Downloading attachments... {idx}/{count}')

embed = discord.Embed(color=gen_color(int(client.last_id)), description=command_contents)
if config['Main']['anonymous_staff']:
if config['Main'].getboolean('anonymous_staff'):
to_send = 'Staff reply: '
else:
to_send = f'{author.mention}: '
Expand Down Expand Up @@ -443,7 +443,7 @@ async def on_message(message):
await progress_msg.edit(content=f'Downloading attachments... {idx}/{count}')

embed = discord.Embed(color=gen_color(int(command_name)), description=command_contents)
if config['Main']['anonymous_staff']:
if config['Main'].getboolean('anonymous_staff'):
to_send = 'Staff reply: '
else:
to_send = f'{author.mention}: '
Expand Down

0 comments on commit ba72059

Please sign in to comment.