diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d7a695eee..4510fbf8f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # v2.0.9 +### Added +- Support for custom blocked emoji and sent emoji +- Use the `config set blocked_emoji` or `sent_emoji` commands. + ### Quick Fix - Support multiple image and file attachments in one message - This is only possible on mobile so its good to handle it in code. diff --git a/bot.py b/bot.py index 78730921ef..ee97b081e6 100644 --- a/bot.py +++ b/bot.py @@ -182,11 +182,13 @@ async def on_ready(self): else: await self.threads.populate_cache() - async def process_modmail(self, message): """Processes messages sent to the bot.""" - reaction = '🚫' if message.author.id in self.blocked_users else '✅' + blocked_emoji = self.config.get('blocked_emoji', '🚫') + sent_emoji = self.config.get('sent_emoji', '✅') + + reaction = blocked_emoji if message.author.id in self.blocked_users else sent_emoji try: await message.add_reaction(reaction) diff --git a/core/config.py b/core/config.py index 95a55c4b5d..2cd544f147 100644 --- a/core/config.py +++ b/core/config.py @@ -8,7 +8,7 @@ class ConfigManager: allowed_to_change_in_command = { 'status', 'log_channel_id', 'mention', 'disable_autoupdates', 'prefix', - 'main_category_id' + 'main_category_id', 'sent_emoji', 'blocked_emoji' } internal_keys = {