kiafumi/commands/fun.py

15 lines
370 B
Python
Raw Normal View History

2022-03-07 00:16:13 +00:00
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))