19 lines
630 B
Python
19 lines
630 B
Python
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')
|
|
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!')
|
|
async def random(self, ctx):
|
|
await ctx.respond("4") ## pretty random lol
|
|
|
|
def setup(bot):
|
|
bot.add_cog(Fun(bot)) |