fix fun.py

This commit is contained in:
Anya 2022-03-07 00:15:28 -08:00
parent 880f8ff09e
commit b9137e4f9e

View file

@ -1,4 +1,4 @@
import discord.commands
from discord.commands import slash_command
from discord.ext import commands
from datetime import date
@ -6,10 +6,14 @@ class Fun(commands.Cog, name="Fun"):
def __init__(self, bot):
self.bot = bot
@slash_command(name='sdate', description='Returns the current Eternal September date', guild_ids=[950115668806746162])
@slash_command(name='sdate', description='Returns the current Eternal September date', guild_ids=[211594838053879808])
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!', guild_ids=[211594838053879808])
async def random(self, ctx):
await ctx.respond("4") ## pretty random lol
def setup(bot):
bot.add_cog(Fun(bot))