some minor changes
This commit is contained in:
parent
e40f26ceab
commit
5c076323b4
1 changed files with 4 additions and 6 deletions
|
@ -4,7 +4,8 @@ from datetime import datetime
|
||||||
import re
|
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.
|
||||||
|
Developed by SeaswimmerTheFsh."""
|
||||||
|
|
||||||
def __init__(self, bot):
|
def __init__(self, bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
@ -74,9 +75,6 @@ class Galaxy(commands.Cog):
|
||||||
colorint = 10070709
|
colorint = 10070709
|
||||||
else:
|
else:
|
||||||
colorint = member.color.value
|
colorint = member.color.value
|
||||||
roles_split = {member.roles}.split()
|
|
||||||
roles_slice = slice(1, -1, 2)
|
|
||||||
roles = roles_split[roles_slice]
|
|
||||||
avatarurl = str(member.avatar_url)
|
avatarurl = str(member.avatar_url)
|
||||||
timestamp_create = int(datetime.timestamp(member.created_at))
|
timestamp_create = int(datetime.timestamp(member.created_at))
|
||||||
timestamp_join = int(datetime.timestamp(member.joined_at))
|
timestamp_join = int(datetime.timestamp(member.joined_at))
|
||||||
|
@ -84,7 +82,7 @@ class Galaxy(commands.Cog):
|
||||||
embed.add_field(name="Joined At", value=f"<t:{timestamp_join}>")
|
embed.add_field(name="Joined At", value=f"<t:{timestamp_join}>")
|
||||||
embed.add_field(name="Created At", value=f"<t:{timestamp_create}>")
|
embed.add_field(name="Created At", value=f"<t:{timestamp_create}>")
|
||||||
embed.add_field(name="Avatar", value=f"[Click Here]({avatarurl})")
|
embed.add_field(name="Avatar", value=f"[Click Here]({avatarurl})")
|
||||||
embed.add_field(name="Roles", value=f"{roles}")
|
embed.add_field(name="Roles", value=f"{member.roles}")
|
||||||
embed.set_thumbnail(url=f"{avatarurl}")
|
embed.set_thumbnail(url=f"{avatarurl}")
|
||||||
embed.set_footer(text=f"ID: {member.id}")
|
embed.set_footer(text=f"ID: {member.id}")
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
Loading…
Reference in a new issue