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:15:28 +00:00
|
|
|
@slash_command(name='sdate', description='Returns the current Eternal September date', guild_ids=[211594838053879808])
|
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:15:28 +00:00
|
|
|
@slash_command(name='random', description='Random Functions!', guild_ids=[211594838053879808])
|
|
|
|
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))
|