Bot pro KSP Discord
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
494 B

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))