from discord.commands import slash_command from discord.ext import commands from datetime import date class Fun(commands.Cog, name="Fun"): def __init__(self, bot): self.bot = bot @slash_command() async def sdate(ctx): sdate = (date.today() - date(1993, 8, 30)).days await ctx.respond(sdate) def setup(bot): bot.add_cog(Fun(bot))