From 993d07d013e4b6cdaed6f99cf38eb13de0770dcb Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 28 Feb 2023 04:14:16 -0500 Subject: [PATCH] test --- galaxy/galaxy.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 597a6a6..ff32321 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -1,6 +1,7 @@ from redbot.core import commands, checks import discord -from datetime import datetime, timezone +from datetime import datetime +import re class Galaxy(commands.Cog): """Custom cog intended for use on the Galaxy discord server.""" @@ -12,7 +13,8 @@ class Galaxy(commands.Cog): async def roleinfo(self, ctx, role: discord.Role): """Gives information on a specific role.""" hexcolor = str(role.color) - await ctx.send(content=f"{hexcolor}") + color = re.sub('#',"",str(role.color)) + await ctx.send(content=f"{color}") @commands.command()