Replace rest of bot.config references. Clear record.py of old config usage.

This commit is contained in:
2024-09-03 19:43:37 -04:00
parent 3a47f58382
commit 44586183fe
5 changed files with 24 additions and 33 deletions
+2 -2
View File
@@ -106,8 +106,8 @@ class DailyLoop(commands.Cog, name="Daily Loop"):
Sends a message saying happy cakeday.
"""
today = datetime.now(tz=UTC).date()
guild: nextcord.Guild = self.bot.get_guild(self.bot.config.params.guild_id)
announce_channel: nextcord.TextChannel = guild.get_channel(self.bot.config.params.general_channel_id)
guild: nextcord.Guild = self.bot.get_guild(settings.params.guild_id)
announce_channel: nextcord.TextChannel = guild.get_channel(settings.channel_ids.general)
cakedays: list[nextcord.Member] = [
human for human in guild.humans if human.joined_at.month == today.month and human.joined_at.day == today.day