aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-19 20:09:12 +0300
committerGravatar ks129 <[email protected]>2020-04-19 20:09:12 +0300
commitecb777b167dce5a8246e9c5ad8a202b370d97b7d (patch)
tree59a14d5e0417e8fe6d3f394dc5fe81e16c10cbc6
parentMerge 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.py15
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))