diff --git a/src/cogs/quote_quota.py b/src/cogs/quote_quota.py index 4a3c228..d61ad50 100644 --- a/src/cogs/quote_quota.py +++ b/src/cogs/quote_quota.py @@ -67,9 +67,9 @@ class QuoteQuota(commands.Cog): ): """Checks the quote quota for the quotes channel.""" now = discord.utils.utcnow() - oldest = now - timedelta(days=7) + oldest = now - timedelta(days=days) await ctx.defer() - channel = self.quotes_channel + channel = self.quotes_channel or discord.utils.get(ctx.guild.text_channels, name="quotes") if not channel: return await ctx.respond(":x: Cannot find quotes channel.") diff --git a/src/conf.py b/src/conf.py index 41ee4c1..e260f8d 100644 --- a/src/conf.py +++ b/src/conf.py @@ -29,6 +29,7 @@ try: CONFIG.setdefault("ollama", {}) CONFIG.setdefault("rss", {"meta": {"channel": None}}) CONFIG.setdefault("screenshot", {}) + CONFIG.setdefault("quote_a", {"channel": None}) CONFIG.setdefault( "server", {