diff options
| -rw-r--r-- | bot/cogs/news.py | 10 | 
1 files changed, 2 insertions, 8 deletions
diff --git a/bot/cogs/news.py b/bot/cogs/news.py index 69305c93d..3aa57442a 100644 --- a/bot/cogs/news.py +++ b/bot/cogs/news.py @@ -4,12 +4,6 @@ from discord.ext.commands import Cog  from bot import constants  from bot.bot import Bot -MAIL_LISTS = [ -    "python-ideas", -    "python-announce-list", -    "pypi-announce" -] -  class News(Cog):      """Post new PEPs and Python News to `#python-news`.""" @@ -25,7 +19,7 @@ class News(Cog):          await self.bot.wait_until_guild_available()          response = await self.bot.api_client.get("bot/bot-settings/news") -        for mail in MAIL_LISTS: +        for mail in constants.PythonNews.mail_lists:              if mail not in response["data"]:                  response["data"][mail] = [] @@ -37,7 +31,7 @@ class News(Cog):      async def get_webhook(self) -> discord.Webhook:          """Get #python-news channel webhook.""" -        return await self.bot.fetch_webhook(constants.Webhooks.python_news) +        return await self.bot.fetch_webhook(constants.PythonNews.webhook)  def setup(bot: Bot) -> None:  |