diff options
| author | 2019-10-23 14:57:59 -0700 | |
|---|---|---|
| committer | 2019-10-25 15:32:20 -0700 | |
| commit | c1ab8ecfb6992f175351b7c921fabada9ce520d2 (patch) | |
| tree | 1a654d8d401fd5e0f6ba1417328205f7543f4069 | |
| parent | InfractionScheduler: delegate type-specific pardon code to subclasses (diff) | |
Superstarify: add icons to constants and config
| -rw-r--r-- | bot/cogs/moderation/utils.py | 7 | ||||
| -rw-r--r-- | bot/constants.py | 3 | ||||
| -rw-r--r-- | 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  |