diff --git a/events/on_message.py b/events/on_message.py index 8a34d2b9..c3c985a9 100644 --- a/events/on_message.py +++ b/events/on_message.py @@ -135,18 +135,18 @@ async def on_message(self, message: discord.Message): ).add_field( name="Staff Information", value=( - f"<:replytop:1138257149705863209> **Username:** {roblox_player.name}\n" - f"<:replymiddle:1138257195121791046> **User ID:** {roblox_player.id}\n" - f"<:replymiddle:1138257195121791046> **Profile Link:** [Click here](https://roblox.com/users/{roblox_player.id}/profile)\n" - f"<:replybottom:1138257250448855090> **Account Created:** " + f"> **Username:** {roblox_player.name}\n" + f"> **User ID:** {roblox_player.id}\n" + f"> **Profile Link:** [Click here](https://roblox.com/users/{roblox_player.id}/profile)\n" + f"> **Account Created:** " ), inline=False ).add_field( name="Abuse Information", value=( - f"<:replytop:1138257149705863209> **Type:** {'Mass-Kick' if 'kicked' in raw_content else 'Mass-Ban'}\n" - f"<:replymiddle:1138257195121791046> **Individuals Affected [{command.count(',')+1}]:** {command}\n" - f"<:replybottom:1138257250448855090> **At:** " + f"> **Type:** {'Mass-Kick' if 'kicked' in raw_content else 'Mass-Ban'}\n" + f"> **Individuals Affected [{command.count(',')+1}]:** {command}\n" + f"> **At:** " ), inline=False ).set_thumbnail( diff --git a/menus.py b/menus.py index f58c39d7..78e1589f 100644 --- a/menus.py +++ b/menus.py @@ -1327,9 +1327,9 @@ async def refresh_ui(self, message: discord.Message): title="Custom Commands", description=( "**Command Information**\n" - f"<:replytop:1138257149705863209> **Command ID:** `{self.command_data['id']}`\n" - f"<:replymiddle:1138257195121791046> **Command Name:** {self.command_data['name']}\n" - f"<:replybottom:1138257250448855090> **Creator:** <@{self.command_data['author']}>\n" + f"> **Command ID:** `{self.command_data['id']}`\n" + f"> **Command Name:** {self.command_data['name']}\n" + f"> **Creator:** <@{self.command_data['author']}>\n" f"\n**Message:**\n" f"View the message below by clicking 'View Message'." ), @@ -3778,12 +3778,12 @@ async def refresh_ui(self, message: discord.Message): embed = discord.Embed( title=f"{self.option.title()} a Reminder", description=( - f"<:replytop:1138257149705863209> **Name:** {self.dataset['name']}\n" - f"<:replymiddle:1138257195121791046> **ID:** {self.dataset['id']}\n" - f"<:replymiddle:1138257195121791046> **Channel:** {'<#{}>'.format(self.dataset.get('channel', None)) if self.dataset.get('channel', None) is not None else 'Not set'}\n" - f"<:replymiddle:1138257195121791046> **Completion Ability:** {self.dataset.get('completion_ability') or 'Not set'}\n" - f"<:replymiddle:1138257195121791046> **Mentioned Roles:** {', '.join(['<@&{}>'.format(r) for r in self.dataset.get('role', [])]) or 'Not set'}\n" - f"<:replybottom:1138257250448855090> **Interval:** {td_format(datetime.timedelta(seconds=self.dataset.get('interval', 0))) or 'Not set'}" + f"> **Name:** {self.dataset['name']}\n" + f"> **ID:** {self.dataset['id']}\n" + f"> **Channel:** {'<#{}>'.format(self.dataset.get('channel', None)) if self.dataset.get('channel', None) is not None else 'Not set'}\n" + f"> **Completion Ability:** {self.dataset.get('completion_ability') or 'Not set'}\n" + f"> **Mentioned Roles:** {', '.join(['<@&{}>'.format(r) for r in self.dataset.get('role', [])]) or 'Not set'}\n" + f"> **Interval:** {td_format(datetime.timedelta(seconds=self.dataset.get('interval', 0))) or 'Not set'}" f"\n\n**Content:**\n{self.dataset['message']}" ), color=BLANK_COLOR @@ -4371,12 +4371,12 @@ async def shift_types(self, interaction: discord.Interaction, button: discord.ui embed.add_field( name=f"{item['name']}", value=( - f"<:replytop:1138257149705863209> **Name:** {item['name']}\n" - f"<:replymiddle:1138257195121791046> **ID:** {item['id']}\n" - f"<:replymiddle:1138257195121791046> **Channel:** <#{item['channel']}>\n" - f"<:replymiddle:1138257195121791046> **Nickname Prefix:** {item.get('nickname') or 'None'}\n" - f"<:replymiddle:1138257195121791046> **Access Roles:** {','.join(['<@&{}>'.format(role) for role in item.get('access_roles') or []]) or 'None'}\n" - f"<:replybottom:1138257250448855090> **On-Duty Role:** {','.join(['<@&{}>'.format(role) for role in item.get('role', [])]) or 'None'}" + f"> **Name:** {item['name']}\n" + f"> **ID:** {item['id']}\n" + f"> **Channel:** <#{item['channel']}>\n" + f"> **Nickname Prefix:** {item.get('nickname') or 'None'}\n" + f"> **Access Roles:** {','.join(['<@&{}>'.format(role) for role in item.get('access_roles') or []]) or 'None'}\n" + f"> **On-Duty Role:** {','.join(['<@&{}>'.format(role) for role in item.get('role', [])]) or 'None'}" ), inline=False ) @@ -4424,12 +4424,12 @@ async def shift_types(self, interaction: discord.Interaction, button: discord.ui embed = discord.Embed( title="Edit a Shift Type", description=( - f"<:replytop:1138257149705863209> **Name:** {data['name']}\n" - f"<:replymiddle:1138257195121791046> **ID:** {data['id']}\n" - f"<:replymiddle:1138257195121791046> **Shift Channel:** {'<#{}>'.format(data.get('channel', None)) if data.get('channel', None) is not None else 'Not set'}\n" - f"<:replymiddle:1138257195121791046> **Nickname Prefix:** {data.get('nickname') or 'None'}\n" - f"<:replymiddle:1138257195121791046> **On-Duty Roles:** {', '.join(['<@&{}>'.format(r) for r in data.get('role', [])]) or 'Not set'}\n" - f"<:replybottom:1138257250448855090> **Access Roles:** {', '.join(['<@&{}>'.format(r) for r in data.get('access_roles', [])]) or 'Not set'}\n\n\n" + f"> **Name:** {data['name']}\n" + f"> **ID:** {data['id']}\n" + f"> **Shift Channel:** {'<#{}>'.format(data.get('channel', None)) if data.get('channel', None) is not None else 'Not set'}\n" + f"> **Nickname Prefix:** {data.get('nickname') or 'None'}\n" + f"> **On-Duty Roles:** {', '.join(['<@&{}>'.format(r) for r in data.get('role', [])]) or 'Not set'}\n" + f"> **Access Roles:** {', '.join(['<@&{}>'.format(r) for r in data.get('access_roles', [])]) or 'Not set'}\n\n\n" f"*Access Roles are roles that are able to freely use this Shift Type and are able to go on-duty as this Shift Type. If an access role is selected, an individual must have it to go on-duty with this Shift Type.*" ), color=BLANK_COLOR @@ -4486,12 +4486,12 @@ async def shift_types(self, interaction: discord.Interaction, button: discord.ui embed = discord.Embed( title="Shift Type Creation", description=( - f"<:replytop:1138257149705863209> **Name:** {data['name']}\n" - f"<:replymiddle:1138257195121791046> **ID:** {data['id']}\n" - f"<:replymiddle:1138257195121791046> **Shift Channel:** {'<#{}>'.format(data.get('channel', None)) if data.get('channel', None) is not None else 'Not set'}\n" - f"<:replymiddle:1138257195121791046> **Nickname Prefix:** {data.get('nickname') or 'None'}\n" - f"<:replymiddle:1138257195121791046> **On-Duty Roles:** {', '.join(['<@&{}>'.format(r) for r in data.get('role', [])]) or 'Not set'}\n" - f"<:replybottom:1138257250448855090> **Access Roles:** {', '.join(['<@&{}>'.format(r) for r in data.get('access_roles', [])]) or 'Not set'}\n\n\n" + f"> **Name:** {data['name']}\n" + f"> **ID:** {data['id']}\n" + f"> **Shift Channel:** {'<#{}>'.format(data.get('channel', None)) if data.get('channel', None) is not None else 'Not set'}\n" + f"> **Nickname Prefix:** {data.get('nickname') or 'None'}\n" + f"> **On-Duty Roles:** {', '.join(['<@&{}>'.format(r) for r in data.get('role', [])]) or 'Not set'}\n" + f"> **Access Roles:** {', '.join(['<@&{}>'.format(r) for r in data.get('access_roles', [])]) or 'Not set'}\n\n\n" f"*Access Roles are roles that are able to freely use this Shift Type and are able to go on-duty as this Shift Type. If an access role is selected, an individual must have it to go on-duty with this Shift Type.*" ), color=BLANK_COLOR @@ -4638,8 +4638,8 @@ async def role_quotas(self, interaction: discord.Interaction, button: discord.ui embed = discord.Embed( title="Role Quota Creation", description=( - f"<:replytop:1138257149705863209> **Role:** {'<@&{}>'.format(data['role']) if data['role'] != 0 else 'Not set'}\n" - f"<:replybottom:1138257250448855090> **Quota:** {td_format(datetime.timedelta(seconds=data['quota']))}\n" + f"> **Role:** {'<@&{}>'.format(data['role']) if data['role'] != 0 else 'Not set'}\n" + f"> **Quota:** {td_format(datetime.timedelta(seconds=data['quota']))}\n" ), color=BLANK_COLOR ) @@ -5600,12 +5600,12 @@ async def refresh_ui(self, message: discord.Message): embed = discord.Embed( title=f"{self.option.title()} a Shift Type", description=( - f"<:replytop:1138257149705863209> **Name:** {self.dataset['name']}\n" - f"<:replymiddle:1138257195121791046> **ID:** {self.dataset['id']}\n" - f"<:replymiddle:1138257195121791046> **Shift Channel:** {'<#{}>'.format(self.dataset.get('channel', None)) if self.dataset.get('channel', None) is not None else 'Not set'}\n" - f"<:replymiddle:1138257195121791046> **Nickname Prefix:** {self.dataset.get('nickname') or 'Not set'}\n" - f"<:replymiddle:1138257195121791046> **On-Duty Roles:** {', '.join(['<@&{}>'.format(r) for r in self.dataset.get('role', [])]) or 'Not set'}\n" - f"<:replybottom:1138257250448855090> **Access Roles:** {', '.join(['<@&{}>'.format(r) for r in self.dataset.get('access_roles', [])]) or 'Not set'}\n\n\n" + f"> **Name:** {self.dataset['name']}\n" + f"> **ID:** {self.dataset['id']}\n" + f"> **Shift Channel:** {'<#{}>'.format(self.dataset.get('channel', None)) if self.dataset.get('channel', None) is not None else 'Not set'}\n" + f"> **Nickname Prefix:** {self.dataset.get('nickname') or 'Not set'}\n" + f"> **On-Duty Roles:** {', '.join(['<@&{}>'.format(r) for r in self.dataset.get('role', [])]) or 'Not set'}\n" + f"> **Access Roles:** {', '.join(['<@&{}>'.format(r) for r in self.dataset.get('access_roles', [])]) or 'Not set'}\n\n\n" f"*Access Roles are roles that are able to freely use this Shift Type and are able to go on-duty as this Shift Type. If an access role is selected, an individual must have it to go on-duty with this Shift Type.*" ), color=BLANK_COLOR @@ -5754,8 +5754,8 @@ async def refresh_ui(self, message: discord.Message): embed = discord.Embed( title="Role Quota Creation", description=( - f"<:replytop:1138257149705863209> **Role:** {'<@&{}>'.format(self.dataset['role']) if self.dataset['role'] != 0 else 'Not set'}\n" - f"<:replybottom:1138257250448855090> **Quota:** {td_format(datetime.timedelta(seconds=self.dataset['quota']))}\n" + f"> **Role:** {'<@&{}>'.format(self.dataset['role']) if self.dataset['role'] != 0 else 'Not set'}\n" + f"> **Quota:** {td_format(datetime.timedelta(seconds=self.dataset['quota']))}\n" ), color=BLANK_COLOR ) @@ -6013,9 +6013,9 @@ async def cycle_ui(self, option: typing.Literal['on', 'break', 'off'], message: ).add_field( name="Current Shift", value=( - f"<:replytop:1138257149705863209> **Started:** \n" - f"<:replymiddle:1138257195121791046> **Breaks:** {len(self.shift['Breaks'])}\n" - f"<:replybottom:1138257250448855090> **Elapsed Time:** {td_format(datetime.timedelta(seconds=get_elapsed_time(shift)))}" + f"> **Started:** \n" + f"> **Breaks:** {len(self.shift['Breaks'])}\n" + f"> **Elapsed Time:** {td_format(datetime.timedelta(seconds=get_elapsed_time(shift)))}" ), inline=False ), @@ -6028,9 +6028,9 @@ async def cycle_ui(self, option: typing.Literal['on', 'break', 'off'], message: ).add_field( name="Shift Overview", value=( - f"<:replytop:1138257149705863209> **Started:** \n" - f"<:replymiddle:1138257195121791046> **Breaks:** {len(self.shift['Breaks'])}\n" - f"<:replybottom:1138257250448855090> **Ended:** " + f"> **Started:** \n" + f"> **Breaks:** {len(self.shift['Breaks'])}\n" + f"> **Ended:** " ), inline=False ) @@ -6045,10 +6045,10 @@ async def cycle_ui(self, option: typing.Literal['on', 'break', 'off'], message: ).add_field( name="Current Shift", value=( - f"<:replytop:1138257149705863209> **Shift Started:** \n" - f"<:replymiddle:1138257195121791046> **Break Started:** \n" - f"<:replymiddle:1138257195121791046> **Breaks:** {len(self.shift['Breaks'])}\n" - f"<:replybottom:1138257250448855090> **Elapsed Time:** {td_format(datetime.timedelta(seconds=get_elapsed_time(shift)))}" + f"> **Shift Started:** \n" + f"> **Break Started:** \n" + f"> **Breaks:** {len(self.shift['Breaks'])}\n" + f"> **Elapsed Time:** {td_format(datetime.timedelta(seconds=get_elapsed_time(shift)))}" ), inline=False ) @@ -6206,9 +6206,9 @@ async def cycle_ui(self, option: typing.Literal['on', 'break', 'off', 'void'], m ).add_field( name="Current Statistics", value=( - f"<:replytop:1138257149705863209> **Total Shift Duration:** {td_format(datetime.timedelta(seconds=sum([get_elapsed_time(item) for item in previous_shifts])))}\n" - f"<:replymiddle:1138257195121791046> **Total Shifts:** {len(previous_shifts)}\n" - f"<:replybottom:1138257250448855090> **Average Shift Duration:** {td_format(datetime.timedelta(seconds=(sum([get_elapsed_time(item) for item in previous_shifts]).__truediv__(len(previous_shifts) or 1))))}\n" + f"> **Total Shift Duration:** {td_format(datetime.timedelta(seconds=sum([get_elapsed_time(item) for item in previous_shifts])))}\n" + f"> **Total Shifts:** {len(previous_shifts)}\n" + f"> **Average Shift Duration:** {td_format(datetime.timedelta(seconds=(sum([get_elapsed_time(item) for item in previous_shifts]).__truediv__(len(previous_shifts) or 1))))}\n" ), inline=False ) @@ -6228,17 +6228,17 @@ async def cycle_ui(self, option: typing.Literal['on', 'break', 'off', 'void'], m ).add_field( name="Current Statistics", value=( - f"<:replytop:1138257149705863209> **Total Shift Duration:** {td_format(datetime.timedelta(seconds=sum([get_elapsed_time(item) for item in previous_shifts])))}\n" - f"<:replymiddle:1138257195121791046> **Total Shifts:** {len(previous_shifts)}\n" - f"<:replybottom:1138257250448855090> **Average Shift Duration:** {td_format(datetime.timedelta(seconds=(sum([get_elapsed_time(item) for item in previous_shifts]).__truediv__(len(previous_shifts) or 1))))}\n" + f"> **Total Shift Duration:** {td_format(datetime.timedelta(seconds=sum([get_elapsed_time(item) for item in previous_shifts])))}\n" + f"> **Total Shifts:** {len(previous_shifts)}\n" + f"> **Average Shift Duration:** {td_format(datetime.timedelta(seconds=(sum([get_elapsed_time(item) for item in previous_shifts]).__truediv__(len(previous_shifts) or 1))))}\n" ), inline=False ).add_field( name="Current Shift", value=( - f"<:replytop:1138257149705863209> **Started:** \n" - f"<:replymiddle:1138257195121791046> **Breaks:** {len(contained_document.breaks)}\n" - f"<:replybottom:1138257250448855090> **Elapsed Time:** {td_format(datetime.timedelta(seconds=get_elapsed_time(shift)))}" + f"> **Started:** \n" + f"> **Breaks:** {len(contained_document.breaks)}\n" + f"> **Elapsed Time:** {td_format(datetime.timedelta(seconds=get_elapsed_time(shift)))}" ), inline=False ), @@ -6251,9 +6251,9 @@ async def cycle_ui(self, option: typing.Literal['on', 'break', 'off', 'void'], m ).add_field( name="Shift Overview", value=( - f"<:replytop:1138257149705863209> **Started:** \n" - f"<:replymiddle:1138257195121791046> **Breaks:** {len(contained_document.breaks)}\n" - f"<:replybottom:1138257250448855090> **Ended:** " + f"> **Started:** \n" + f"> **Breaks:** {len(contained_document.breaks)}\n" + f"> **Ended:** " ), inline=False ), @@ -6268,18 +6268,18 @@ async def cycle_ui(self, option: typing.Literal['on', 'break', 'off', 'void'], m ).add_field( name="Current Statistics", value=( - f"<:replytop:1138257149705863209> **Total Shift Duration:** {td_format(datetime.timedelta(seconds=sum([get_elapsed_time(item) for item in previous_shifts])))}\n" - f"<:replymiddle:1138257195121791046> **Total Shifts:** {len(previous_shifts)}\n" - f"<:replybottom:1138257250448855090> **Average Shift Duration:** {td_format(datetime.timedelta(seconds=(sum([get_elapsed_time(item) for item in previous_shifts]).__truediv__(len(previous_shifts) or 1))))}\n" + f"> **Total Shift Duration:** {td_format(datetime.timedelta(seconds=sum([get_elapsed_time(item) for item in previous_shifts])))}\n" + f"> **Total Shifts:** {len(previous_shifts)}\n" + f"> **Average Shift Duration:** {td_format(datetime.timedelta(seconds=(sum([get_elapsed_time(item) for item in previous_shifts]).__truediv__(len(previous_shifts) or 1))))}\n" ), inline=False ).add_field( name="Current Shift", value=( - f"<:replytop:1138257149705863209> **Shift Started:** \n" - f"<:replymiddle:1138257195121791046> **Break Started:** \n" - f"<:replymiddle:1138257195121791046> **Breaks:** {len(contained_document.breaks)}\n" - f"<:replybottom:1138257250448855090> **Elapsed Time:** {td_format(datetime.timedelta(seconds=get_elapsed_time(shift)))}" + f"> **Shift Started:** \n" + f"> **Break Started:** \n" + f"> **Breaks:** {len(contained_document.breaks)}\n" + f"> **Elapsed Time:** {td_format(datetime.timedelta(seconds=get_elapsed_time(shift)))}" ), inline=False ) @@ -7077,9 +7077,9 @@ async def refresh_ui(self, message: discord.Message): embed = discord.Embed( title="Punishment Type Creation", description=( - f"<:replytop:1138257149705863209> **Name:** {self.dataset['name']}\n" - f"<:replymiddle:1138257195121791046> **ID:** {self.dataset['id']}\n" - f"<:replybottom:1138257250448855090> **Punishment Channel:** {'<#{}>'.format(self.dataset.get('channel', None)) if self.dataset.get('channel', None) is not None else 'Not set'}\n" + f"> **Name:** {self.dataset['name']}\n" + f"> **ID:** {self.dataset['id']}\n" + f"> **Punishment Channel:** {'<#{}>'.format(self.dataset.get('channel', None)) if self.dataset.get('channel', None) is not None else 'Not set'}\n" ), color=BLANK_COLOR ) @@ -7169,10 +7169,10 @@ async def refresh_ui(self, message: discord.Message): embed = discord.Embed( title="Punishment Modification", description=( - f"<:replytop:1138257149705863209> **Username:** {self.dataset['Username']}\n" - f"<:replymiddle:1138257195121791046> **Type:** {self.dataset['Type']}\n" - f"<:replymiddle:1138257195121791046> **ID:** {self.dataset['Snowflake']}\n" - f"<:replybottom:1138257250448855090> **Reason:** {self.dataset['Reason']}" + f"> **Username:** {self.dataset['Username']}\n" + f"> **Type:** {self.dataset['Type']}\n" + f"> **ID:** {self.dataset['Snowflake']}\n" + f"> **Reason:** {self.dataset['Reason']}" ), color=BLANK_COLOR ) @@ -7297,4 +7297,4 @@ async def finish(self, interaction: discord.Interaction, _: discord.Button): if punishment: await self.bot.punishments.upsert(self.dataset) self.cancelled = False - self.stop() \ No newline at end of file + self.stop()