test
This commit is contained in:
parent
d8860ff2c7
commit
993d07d013
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
from redbot.core import commands, checks
|
from redbot.core import commands, checks
|
||||||
import discord
|
import discord
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime
|
||||||
|
import re
|
||||||
|
|
||||||
class Galaxy(commands.Cog):
|
class Galaxy(commands.Cog):
|
||||||
"""Custom cog intended for use on the Galaxy discord server."""
|
"""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):
|
async def roleinfo(self, ctx, role: discord.Role):
|
||||||
"""Gives information on a specific role."""
|
"""Gives information on a specific role."""
|
||||||
hexcolor = str(role.color)
|
hexcolor = str(role.color)
|
||||||
await ctx.send(content=f"{hexcolor}")
|
color = re.sub('#',"",str(role.color))
|
||||||
|
await ctx.send(content=f"{color}")
|
||||||
|
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
|
|
Loading…
Reference in a new issue