Skip to content

Commit

Permalink
refactor: Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Aug 27, 2024
1 parent 9a17fe2 commit a5d03be
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions reaper/cogs/global_replies.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
replies = True

# Embeds about global enabling/denying automatic replies for the bot
replieson = discord.Embed(title="Automatic bot replies set to ***ON***", color=0x287E29)
repliesoff = discord.Embed(
replies_on_embed = discord.Embed(
title="Automatic bot replies set to ***ON***", color=0x287E29
)
replies_off_embed = discord.Embed(
title="Automatic bot replies set to ***OFF***", color=0xDC143C
)

Expand Down Expand Up @@ -48,12 +50,12 @@ async def toggleglobalreplies(self, ctx):

if not replies:
replies = True
await ctx.send(embed=replieson)
await ctx.send(embed=replies_on_embed)
logger.info("Automatic bot replies are enabled")

else:
replies = False
await ctx.send(embed=repliesoff)
await ctx.send(embed=replies_off_embed)
logger.info("Automatic bot replies are disabled")
else:
await ctx.send(
Expand Down

0 comments on commit a5d03be

Please sign in to comment.