This commit is contained in:
TiddyT 2022-03-06 18:16:13 -06:00
commit 7f678160dc
4 changed files with 31 additions and 0 deletions

15
commands/fun.py Normal file
View file

@ -0,0 +1,15 @@
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))

0
commands/moderation.py Normal file
View file

0
commands/utility.py Normal file
View file

16
kiafumi.py Normal file
View file

@ -0,0 +1,16 @@
import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
bot = discord.Bot(intents=intents)
class Kiafumi(discord.Bot):
@bot.event
async def on_ready():
print(f'Logged on as {bot.user}!')
bot.load_extension('commands.fun') # cogs_folder.filename
bot.run("OTUwMTA4Nzg3MTExNTIyMzc0.YiUHww.s4ydKNtD9sTB1OpQGYdnorDf5JY")