innit
This commit is contained in:
commit
7f678160dc
15
commands/fun.py
Normal file
15
commands/fun.py
Normal 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
0
commands/moderation.py
Normal file
0
commands/utility.py
Normal file
0
commands/utility.py
Normal file
16
kiafumi.py
Normal file
16
kiafumi.py
Normal 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")
|
Loading…
Reference in a new issue