diff options
author | 2021-03-20 18:21:16 +0200 | |
---|---|---|
committer | 2021-03-20 18:21:16 +0200 | |
commit | c5ba406e866e157a700ffce55f0be4a5c9d397fb (patch) | |
tree | 82c67543c3f0602810627bd4f60449ee703c0e90 | |
parent | Merge pull request #1475 from python-discord/mbaruh/review_fix (diff) | |
parent | Added nomination voting channel to config (diff) |
Merge pull request #1477 from python-discord/add-nomination-voting-channel
Added nomination voting channel to config
-rw-r--r-- | bot/constants.py | 1 | ||||
-rw-r--r-- | bot/exts/recruitment/talentpool/_review.py | 4 | ||||
-rw-r--r-- | config-default.yml | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py index 394d59a73..467a4a2c4 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -438,6 +438,7 @@ class Channels(metaclass=YAMLGetter): mods: int mod_alerts: int mod_spam: int + nomination_voting: int organisation: int admin_announcements: int diff --git a/bot/exts/recruitment/talentpool/_review.py b/bot/exts/recruitment/talentpool/_review.py index 57e18af9a..fb3461238 100644 --- a/bot/exts/recruitment/talentpool/_review.py +++ b/bot/exts/recruitment/talentpool/_review.py @@ -66,7 +66,7 @@ class Reviewer: self._review_scheduler.schedule_at(review_at, user_id, self.post_review(user_id, update_database=True)) async def post_review(self, user_id: int, update_database: bool) -> None: - """Format a generic review of a user and post it to the mod announcements channel.""" + """Format a generic review of a user and post it to the nomination voting channel.""" log.trace(f"Posting the review of {user_id}") nomination = self._pool.watched_users[user_id] @@ -75,7 +75,7 @@ class Reviewer: return guild = self.bot.get_guild(Guild.id) - channel = guild.get_channel(Channels.mod_announcements) + channel = guild.get_channel(Channels.nomination_voting) member = guild.get_member(user_id) if update_database: diff --git a/config-default.yml b/config-default.yml index 49d7f84ac..502f0f861 100644 --- a/config-default.yml +++ b/config-default.yml @@ -199,6 +199,7 @@ guild: mod_meta: &MOD_META 775412552795947058 mod_spam: &MOD_SPAM 620607373828030464 mod_tools: &MOD_TOOLS 775413915391098921 + nomination_voting: 822853512709931008 organisation: &ORGANISATION 551789653284356126 staff_lounge: &STAFF_LOUNGE 464905259261755392 |