Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n committed Mar 21, 2024
1 parent ab72382 commit 532b376
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extensions/karma.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ async def votes(self, ctx: commands.Context):
Shows if votes are enabled in the current channel
"""
if ctx.channel.id in self.vote_channels:
embed = discord.Embed(color=0x23B40C)
embed = discord.Embed(color=discord.Color.green())
embed.description = f"Votes are **ALREADY enabled** in {ctx.channel.mention}!"
else:
embed = discord.Embed(color=0xF66045)
embed = discord.Embed(color=discord.Color.red())
embed.description = f"Votes are **NOT enabled** in {ctx.channel.mention}!"
await ctx.reply(embed=embed)

Expand Down
2 changes: 1 addition & 1 deletion extensions/owner.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def shutdown(self, ctx: commands.Context):
"""
Shuts down the bot. Made this in case something goes wrong.
"""
embed = discord.Embed(description="Shutting down...", color=0xF66045)
embed = discord.Embed(description="Shutting down...", color=discord.Colour.red())
await ctx.send(embed=embed)
await self.bot.close()

Expand Down
3 changes: 2 additions & 1 deletion extensions/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ def convert(self, time):
return time_val * time_dict[unit]

def create_giveaway_embed(self, author: discord.Member, prize):
embed = discord.Embed(title=":tada: Giveaway :tada:", description=f"Win **{prize}**!", color=0x00FFFF)
cyan = discord.Colour.from_rgb(0, 255, 255)
embed = discord.Embed(title=":tada: Giveaway :tada:", description=f"Win **{prize}**!", color=cyan)
host = author.mention if isinstance(author, (discord.Member, discord.User)) else author
embed.add_field(name="Hosted By:", value=host)
return embed
Expand Down

0 comments on commit 532b376

Please sign in to comment.