aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-02-20 17:01:19 +0100
committerGravatar Matteo Bertucci <[email protected]>2021-02-20 17:01:19 +0100
commit0dd2e75be2368a4197e9370cf982dc8be8fa862b (patch)
tree1fab8f46a69ea98519efcede8da868880084b66d
parentUpdate Dockerfile (diff)
Add bot and verified bot badges to the user embed.
-rw-r--r--bot/constants.py2
-rw-r--r--bot/exts/info/information.py3
-rw-r--r--config-default.yml2
3 files changed, 7 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 8a93ff9cf..91d425b1d 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -279,6 +279,8 @@ class Emojis(metaclass=YAMLGetter):
badge_partner: str
badge_staff: str
badge_verified_bot_developer: str
+ badge_verified_bot: str
+ bot: str
defcon_disabled: str # noqa: E704
defcon_enabled: str # noqa: E704
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py
index 4499e4c25..256be2161 100644
--- a/bot/exts/info/information.py
+++ b/bot/exts/info/information.py
@@ -228,6 +228,9 @@ class Information(Cog):
if on_server and user.nick:
name = f"{user.nick} ({name})"
+ if user.bot:
+ name += f" {constants.Emojis.bot}"
+
badges = []
for badge, is_set in user.public_flags:
diff --git a/config-default.yml b/config-default.yml
index 25bbcc3c5..822b37daf 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -46,6 +46,8 @@ style:
badge_partner: "<:partner:748666453242413136>"
badge_staff: "<:discord_staff:743882896498098226>"
badge_verified_bot_developer: "<:verified_bot_dev:743882897299210310>"
+ badge_verified_bot: "<:verified_bot:811645219220750347>"
+ bot: "<:bot:812712599464443914>"
defcon_disabled: "<:defcondisabled:470326273952972810>"
defcon_enabled: "<:defconenabled:470326274213150730>"