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(name='sdate', description='Returns the current Eternal September date', guild_ids=[211594838053879808]) async def sdate(self, ctx): sdate = (date.today() - date(1993, 8, 30)).days await ctx.respond(f"Today is September {sdate}, 1993.") @slash_command(name='random', description='Random Functions!', guild_ids=[211594838053879808]) async def random(self, ctx): await ctx.respond("4") ## pretty random lol def setup(bot): bot.add_cog(Fun(bot))