From c1ab8ecfb6992f175351b7c921fabada9ce520d2 Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Wed, 23 Oct 2019 14:57:59 -0700 Subject: Superstarify: add icons to constants and config --- bot/cogs/moderation/utils.py | 7 ++++--- bot/constants.py | 3 +++ config-default.yml | 3 +++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/bot/cogs/moderation/utils.py b/bot/cogs/moderation/utils.py index 788a40d40..c05cb69a1 100644 --- a/bot/cogs/moderation/utils.py +++ b/bot/cogs/moderation/utils.py @@ -15,11 +15,12 @@ log = logging.getLogger(__name__) # apply icon, pardon icon INFRACTION_ICONS = { - "mute": (Icons.user_mute, Icons.user_unmute), - "kick": (Icons.sign_out, None), "ban": (Icons.user_ban, Icons.user_unban), - "warning": (Icons.user_warn, None), + "kick": (Icons.sign_out, None), + "mute": (Icons.user_mute, Icons.user_unmute), "note": (Icons.user_warn, None), + "superstar": (Icons.superstarify, Icons.unsuperstarify), + "warning": (Icons.user_warn, None), } RULES_URL = "https://pythondiscord.com/pages/rules" APPEALABLE_INFRACTIONS = ("ban", "mute") diff --git a/bot/constants.py b/bot/constants.py index 838fe7a79..ad68919ea 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -308,6 +308,9 @@ class Icons(metaclass=YAMLGetter): questionmark: str + superstarify: str + unsuperstarify: str + class CleanMessages(metaclass=YAMLGetter): section = "bot" diff --git a/config-default.yml b/config-default.yml index 4638a89ee..8d7481833 100644 --- a/config-default.yml +++ b/config-default.yml @@ -82,6 +82,9 @@ style: questionmark: "https://cdn.discordapp.com/emojis/512367613339369475.png" + superstarify: "https://cdn.discordapp.com/emojis/636288153044516874.png" + unsuperstarify: "https://cdn.discordapp.com/emojis/636288201258172446.png" + guild: id: 267624335836053506 -- cgit v1.2.3