kiafumi/commands/fun.py

19 lines
630 B
Python
Raw Normal View History

2022-03-07 08:15:28 +00:00
from discord.commands import slash_command
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 08:18:00 +00:00
@slash_command(name='sdate', description='Returns the current Eternal September date')
2022-03-07 04:19:24 +00:00
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
2022-03-07 08:18:00 +00:00
@slash_command(name='random', description='Random Functions!')
2022-03-07 08:15:28 +00:00
async def random(self, ctx):
await ctx.respond("4") ## pretty random lol
2022-03-07 00:16:13 +00:00
def setup(bot):
bot.add_cog(Fun(bot))