From 80e037772150148c8aee9f49fd34a834e778b6c2 Mon Sep 17 00:00:00 2001 From: Matteo Bertucci Date: Sat, 13 Mar 2021 18:08:54 +0100 Subject: Add leads to the constants --- bot/constants.py | 2 ++ config-default.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bot/constants.py b/bot/constants.py index 394d59a73..3918dfdc7 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -486,6 +486,8 @@ class Roles(metaclass=YAMLGetter): voice_verified: int admins: int + domain_leads: int + project_leads: int core_developers: int devops: int helpers: int diff --git a/config-default.yml b/config-default.yml index 3dbc7bd6b..a961df85b 100644 --- a/config-default.yml +++ b/config-default.yml @@ -262,6 +262,8 @@ guild: # Staff admins: &ADMINS_ROLE 267628507062992896 + domain_leads: 807415650778742785 + project_leads: 807415650778742785 core_developers: 587606783669829632 devops: 409416496733880320 helpers: &HELPERS_ROLE 267630620367257601 -- cgit v1.2.3 From 6724505ea01cf1bb345a8272643da00a6f28f272 Mon Sep 17 00:00:00 2001 From: Matteo Bertucci Date: Sat, 13 Mar 2021 18:22:44 +0100 Subject: Allow the !poll command to leads --- bot/exts/utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py index a5d6f69b9..c45f73b88 100644 --- a/bot/exts/utils/utils.py +++ b/bot/exts/utils/utils.py @@ -9,7 +9,7 @@ from discord.ext.commands import BadArgument, Cog, Context, clean_content, comma from discord.utils import snowflake_time from bot.bot import Bot -from bot.constants import Channels, MODERATION_ROLES, STAFF_ROLES +from bot.constants import Channels, MODERATION_ROLES, STAFF_ROLES, Roles from bot.converters import Snowflake from bot.decorators import in_whitelist from bot.pagination import LinePaginator @@ -175,7 +175,7 @@ class Utils(Cog): await ctx.send(embed=embed) @command(aliases=("poll",)) - @has_any_role(*MODERATION_ROLES) + @has_any_role(*MODERATION_ROLES, Roles.project_leads, Roles.domain_leads) async def vote(self, ctx: Context, title: clean_content(fix_channel_mentions=True), *options: str) -> None: """ Build a quick voting poll with matching reactions with the provided options. -- cgit v1.2.3 From 58fbc2ebad75f4f86c47d23128e0c8421e68446e Mon Sep 17 00:00:00 2001 From: Matteo Bertucci Date: Tue, 30 Mar 2021 15:10:00 +0000 Subject: Alphabetize configuration --- bot/constants.py | 4 ++-- bot/exts/utils/utils.py | 2 +- config-default.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bot/constants.py b/bot/constants.py index 787e8b12e..7be0b9f6d 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -487,13 +487,13 @@ class Roles(metaclass=YAMLGetter): voice_verified: int admins: int - domain_leads: int - project_leads: int core_developers: int devops: int + domain_leads: int helpers: int moderators: int owners: int + project_leads: int jammers: int team_leaders: int diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py index c45f73b88..cae7f2593 100644 --- a/bot/exts/utils/utils.py +++ b/bot/exts/utils/utils.py @@ -9,7 +9,7 @@ from discord.ext.commands import BadArgument, Cog, Context, clean_content, comma from discord.utils import snowflake_time from bot.bot import Bot -from bot.constants import Channels, MODERATION_ROLES, STAFF_ROLES, Roles +from bot.constants import Channels, MODERATION_ROLES, Roles, STAFF_ROLES from bot.converters import Snowflake from bot.decorators import in_whitelist from bot.pagination import LinePaginator diff --git a/config-default.yml b/config-default.yml index dde7e48e1..59e6f4333 100644 --- a/config-default.yml +++ b/config-default.yml @@ -263,13 +263,13 @@ guild: # Staff admins: &ADMINS_ROLE 267628507062992896 - domain_leads: 807415650778742785 - project_leads: 807415650778742785 core_developers: 587606783669829632 devops: 409416496733880320 + domain_leads: 807415650778742785 helpers: &HELPERS_ROLE 267630620367257601 moderators: &MODS_ROLE 267629731250176001 owners: &OWNERS_ROLE 267627879762755584 + project_leads: 815701647526330398 # Code Jam jammers: 737249140966162473 -- cgit v1.2.3