import discord from discord.ext import commands from utils.ksp_utils import * class Ksp(commands.Cog): def __init__(self, bot): self.bot = bot @discord.slash_command() async def task(self, ctx, task_code): await ctx.respond( f'**{task_code}**\n' f'Task: {task_link(task_code, solution=False)}\n' f'Solution: {task_link(task_code, solution=True)}', ephemeral=True ) def setup(bot): bot.add_cog(Ksp(bot))