diff options
| author | 2020-04-19 20:09:12 +0300 | |
|---|---|---|
| committer | 2020-04-19 20:09:12 +0300 | |
| commit | ecb777b167dce5a8246e9c5ad8a202b370d97b7d (patch) | |
| tree | 59a14d5e0417e8fe6d3f394dc5fe81e16c10cbc6 | |
| parent | Merge pull request #875 from python-discord/bug/info/869/tag-encoding (diff) | |
Created `News` cog
Added general content of cog: class and setup.
| -rw-r--r-- | bot/cogs/news.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bot/cogs/news.py b/bot/cogs/news.py new file mode 100644 index 000000000..8eb8689c2 --- /dev/null +++ b/bot/cogs/news.py @@ -0,0 +1,15 @@ +from discord.ext.commands import Cog + +from bot.bot import Bot + + +class News(Cog): + """Post new PEPs and Python News to `#python-news`.""" + + def __init__(self, bot: Bot): + self.bot = bot + + +def setup(bot: Bot) -> None: + """Add `News` cog.""" + bot.add_cog(News(bot)) |