testing a change to userinfo
This commit is contained in:
parent
9247d7f74f
commit
53b7cf90ab
1 changed files with 5 additions and 12 deletions
17
info/info.py
17
info/info.py
|
@ -362,17 +362,10 @@ class Info(commands.Cog):
|
|||
if not member:
|
||||
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]
|
||||
names, nicks = await self.get_names_and_nicks(member)
|
||||
|
||||
if is_special:
|
||||
joined_at = special_date
|
||||
else:
|
||||
joined_at = member.joined_at
|
||||
joined_at = member.joined_at
|
||||
voice_state = member.voice
|
||||
member_number = (
|
||||
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 = (
|
||||
f"{discord.utils.format_dt(member.created_at)}\n"
|
||||
f"{discord.utils.format_dt(member.created_at, 'R')}"
|
||||
f"<t:{int(datetime.timestamp(member.created_at))}>\n"
|
||||
f"<t:{int(datetime.timestamp(member.created_at))}:R>"
|
||||
)
|
||||
if joined_at is not None:
|
||||
joined_on = (
|
||||
f"{discord.utils.format_dt(joined_at)}\n"
|
||||
f"{discord.utils.format_dt(joined_at, 'R')}"
|
||||
f"<t:{int(datetime.timestamp(joined_at))}>\n"
|
||||
f"<t:{int(datetime.timestamp(joined_at))}:R>"
|
||||
)
|
||||
else:
|
||||
joined_on = _("Unknown")
|
||||
|
|
Loading…
Reference in a new issue