Added check system for all slash-commands

Blocks command execution during startup-routine, providing an explanation to the user
Removed leftover comment in about.py
This commit is contained in:
2024-10-30 12:29:19 +01:00
parent 5f5de1d43d
commit 70a8974e28
6 changed files with 78 additions and 19 deletions
+3
View File
@@ -2,6 +2,8 @@ import discord
from discord import app_commands
from discord.ext import commands
from cogs.base_cog import Base_Cog
from cogs.maintenance import Maintenance_Command
import logging
from utils.portal import Portal
from datetime import datetime
@@ -14,6 +16,7 @@ class Debug_Command(Base_Cog):
super().__init__(logging.getLogger("cmds.debug"))
@app_commands.command(name = "debug", description = "Provides debug informations about the bot, useful for troubleshooting")
@app_commands.check(Maintenance_Command.handle_check)
@log_command_execution
async def debug(self, ctx:discord.Interaction):
portal:Portal = Portal.instance()