kiafumi/commands/fun.py

15 lines
490 B
Python
Raw Normal View History

2022-03-07 04:19:24 +00:00
import discord.commands
2022-03-07 00:16:13 +00:00
from discord.ext import commands
from datetime import date
class Fun(commands.Cog, name="Fun"):
def __init__(self, bot):
self.bot = bot
2022-03-07 04:19:24 +00:00
@slash_command(name='sdate', description='Returns the current Eternal September date', guild_ids=[950115668806746162])
async def sdate(self, ctx):
2022-03-07 00:16:13 +00:00
sdate = (date.today() - date(1993, 8, 30)).days
2022-03-07 04:19:24 +00:00
await ctx.respond(f"Today is September {sdate}, 1993.")
2022-03-07 00:16:13 +00:00
def setup(bot):
bot.add_cog(Fun(bot))