Adding short term status display limit

This commit is contained in:
AllfatherHatt 2025-02-21 00:02:46 +01:00
parent d970df5a12
commit 8c93e45c2f

View File

@ -278,6 +278,12 @@ class ReginaldCog(commands.Cog):
self.short_term_memory_limit = limit self.short_term_memory_limit = limit
await ctx.send(f"✅ Short-term memory limit set to {limit} messages.") await ctx.send(f"✅ Short-term memory limit set to {limit} messages.")
@commands.command(name="reginald_memory_limit", help="Displays the current short-term memory message limit.")
async def get_short_term_memory_limit(self, ctx):
"""Displays the current short-term memory limit."""
await ctx.send(f"📏 **Current Short-Term Memory Limit:** {self.short_term_memory_limit} messages.")
async def setup(bot): async def setup(bot):
"""✅ Correct async cog setup for Redbot""" """✅ Correct async cog setup for Redbot"""
await bot.add_cog(ReginaldCog(bot)) await bot.add_cog(ReginaldCog(bot))