67
68 @staticmethod
69 def setup_warning(k: str):
70 logger.warn(71 '.env file does not have key {}. Some features may not function as intended.'.format(k))
72
73 @staticmethod
46 channel = guild.get_channel(
47 guild_service.get_guild().channel_common_issues)
48 if channel is None:
49 logger.warn("#rules-and-info channel not found! The /issue command will not work! Make sure to set `channel_common_issues` in the database if you want it.") 50 return
51
52 async for message in channel.history(limit=None, oldest_first=True):
78 channel = guild.get_channel(
79 guild_service.get_guild().channel_rules)
80 if channel is None:
81 logger.warn("#rules-and-info channel not found! The /rule command will not work! Make sure to set `channel_rules` in the database if you want it.") 82 return
83
84 async for message in channel.history(limit=None, oldest_first=True):
158
159async def setup(bot):
160 if os.environ.get("PASTEE_TOKEN") is None:
161 logger.warn(162 "Pastee token not set, not loading the TweakList cog! If you want this, refer to README.md.")
163 return
164
41
42async def setup(bot):
43 if cfg.aaron_id is None or cfg.aaron_role is None:
44 logger.warn(45 "Aaron's ID or role not set, disabling the Sabbath cog! If you want this, refer to README.md.")
46 return
47
The method is marked as deprecated and will be removed in a future version of Python. Consider looking for an alternative in the documentation.