Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion bot/cogs/information.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from discord import CategoryChannel, Colour, Embed, Member, Role, TextChannel, VoiceChannel, utils
from discord.ext import commands
from discord.ext.commands import Bot, BucketType, Cog, Context, command, group
from discord.utils import escape_markdown

from bot.constants import Channels, Emojis, MODERATION_ROLES, STAFF_ROLES
from bot.decorators import InChannelCheckFailure, in_channel, with_role
Expand Down Expand Up @@ -180,6 +181,13 @@ async def user_info(self, ctx: Context, user: Member = None, hidden: bool = Fals
# User information
created = time_since(user.created_at, max_units=3)

# Custom status
custom_status = ''
for activity in user.activities:
if activity.name == 'Custom Status':
state = escape_markdown(activity.state)
custom_status = f'Status: {state}\n'

name = str(user)
if user.nick:
name = f"{user.nick} ({name})"
Expand Down Expand Up @@ -217,7 +225,7 @@ async def user_info(self, ctx: Context, user: Member = None, hidden: bool = Fals
Created: {created}
Profile: {user.mention}
ID: {user.id}

{custom_status}
**Member Information**
Joined: {joined}
Roles: {roles or None}
Expand Down