testing a change to userinfo

This commit is contained in:
Seaswimmer 2023-03-03 15:10:09 -05:00
parent 9247d7f74f
commit 53b7cf90ab

View file

@ -362,17 +362,10 @@ class Info(commands.Cog):
if not member: if not member:
member = author member = author
# A special case for a special someone :^)
special_date = datetime.datetime(2016, 1, 10, 6, 8, 4, 443000, datetime.timezone.utc)
is_special = member.id == 96130341705637888 and guild.id == 133049272517001216
roles = member.roles[-1:0:-1] roles = member.roles[-1:0:-1]
names, nicks = await self.get_names_and_nicks(member) names, nicks = await self.get_names_and_nicks(member)
if is_special: joined_at = member.joined_at
joined_at = special_date
else:
joined_at = member.joined_at
voice_state = member.voice voice_state = member.voice
member_number = ( member_number = (
sorted(guild.members, key=lambda m: m.joined_at or ctx.message.created_at).index( sorted(guild.members, key=lambda m: m.joined_at or ctx.message.created_at).index(
@ -382,13 +375,13 @@ class Info(commands.Cog):
) )
created_on = ( created_on = (
f"{discord.utils.format_dt(member.created_at)}\n" f"<t:{int(datetime.timestamp(member.created_at))}>\n"
f"{discord.utils.format_dt(member.created_at, 'R')}" f"<t:{int(datetime.timestamp(member.created_at))}:R>"
) )
if joined_at is not None: if joined_at is not None:
joined_on = ( joined_on = (
f"{discord.utils.format_dt(joined_at)}\n" f"<t:{int(datetime.timestamp(joined_at))}>\n"
f"{discord.utils.format_dt(joined_at, 'R')}" f"<t:{int(datetime.timestamp(joined_at))}:R>"
) )
else: else:
joined_on = _("Unknown") joined_on = _("Unknown")