diff options
| author | 2020-03-28 17:16:18 +0200 | |
|---|---|---|
| committer | 2020-03-28 17:16:18 +0200 | |
| commit | f086fb2bc65f1031542d9bfae231a31ffeaa8a43 (patch) | |
| tree | 6181dbc911caf42aed06cb5e31a1eb33e2f84ce8 | |
| parent | Merge pull request #842 from python-discord/bug/util/831/snekbox-reeval-parsing (diff) | |
(Webhook Detection): Created cog.
| -rw-r--r-- | bot/cogs/webhook_remover.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bot/cogs/webhook_remover.py b/bot/cogs/webhook_remover.py new file mode 100644 index 000000000..982359410 --- /dev/null +++ b/bot/cogs/webhook_remover.py @@ -0,0 +1,15 @@ +from discord.ext.commands import Cog + +from bot.bot import Bot + + +class WebhookRemover(Cog): + """Scan messages to detect Discord webhooks links.""" + + def __init__(self, bot: Bot): + self.bot = bot + + +def setup(bot: Bot) -> None: + """Load `WebhookRemover` cog.""" + bot.add_cog(WebhookRemover(bot)) |