mirror of
https://github.com/Matthww/TuneBot.git
synced 2026-09-21 22:07:48 +00:00
14 lines
415 B
Python
14 lines
415 B
Python
from typing import Dict
|
|
from discord.ext.commands import Cog
|
|
from bot import TuneBot
|
|
|
|
|
|
class BaseCog(Cog):
|
|
def __init__(self, bot: TuneBot) -> None:
|
|
self.bot = bot
|
|
|
|
slash_descriptions: Dict[str, str] = self.bot.config["slash_descriptions"]
|
|
for command in self.walk_commands():
|
|
if brief := slash_descriptions.get(command.qualified_name):
|
|
command.brief = brief
|