final commit i hope

This commit is contained in:
esef committed 2026-06-07 13:32:32 +03:00
1 parent 1ba7281573
commit a8154ac3fa
5 files changed
+69 -52

No files matched your search

+7
View File
@@ -6,6 +6,13 @@ class Fun(commands.Cog):
def __init__(self, bot):
self.bot = bot
# this command lists all the fun commands, not an actualy fun command##
@commands.command()
async def fun(self, ctx):
fun_commands = [f'!{cmd.name}' for cmd in self.get_commands() if cmd.name != 'fun']
await ctx.reply('\n'.join(sorted(fun_commands)))
######################################################################
@commands.command()
async def coin(self, ctx):
result = random.choice(['🪙 Heads', '🪙 Tails'])
+7
View File
@@ -7,6 +7,13 @@ class Copypasta(commands.Cog):
def __init__(self, bot):
self.bot = bot
# this command lists all the copypasta commands, not an actualy copypasta command##
@commands.command()
async def copypasta(self, ctx):
pasta_commands = [f'!{cmd.name}' for cmd in self.get_commands() if cmd.name != 'copypasta']
await ctx.reply('\n'.join(sorted(pasta_commands)))
######################################################################
@commands.command()
async def yuukapasta(self, ctx):
pasta = ("""Since Yuuka is the paragon of human virtue without equal past or present, she is most resplendent in love, tributes and accolades. Waking or sleeping, I must not forget Yuuka’s great boon and in order to return her favour by day and by night, I should only think of fulfilling my loyalty.
+19 -40
View File
@@ -1,53 +1,32 @@
# this is where gif commands live
import discord
import os
from discord.ext import commands
class Gifs(commands.Cog):
def __init__(self, bot):
self.bot = bot
self._load_gif_commands()
def _load_gif_commands(self):
if not os.path.exists('gifs'):
return
for filename in os.listdir('gifs'):
if filename.endswith('.gif'):
name = filename[:-4] # strip .gif
self._make_command(name)
def _make_command(self, name: str):
async def gif_command(self, ctx):
await ctx.reply(file=discord.File(f'gifs/{name}.gif'))
gif_command.__name__ = name
cmd = commands.command(name=name)(gif_command)
self.add_command(cmd)
#this command lists all the gif commands, not an actualy gif command##
@commands.command()
async def gifs(self, ctx):
gif_commands = [f'!{cmd.name}' for cmd in self.get_commands()]
await ctx.reply('\n'.join(gif_commands))
######################################################################
@commands.command()
async def czech(self, ctx):
await ctx.reply(file=discord.File('gifs/czech.gif'))
@commands.command()
async def dogshit(self, ctx):
await ctx.reply(file=discord.File('gifs/dogshit.gif'))
@commands.command()
async def how(self, ctx):
await ctx.reply(file=discord.File('gifs/how.gif'))
@commands.command()
async def peak(self, ctx):
await ctx.reply(file=discord.File('gifs/peak.gif'))
@commands.command()
async def please(self, ctx):
await ctx.reply(file=discord.File('gifs/please.gif'))
@commands.command()
async def shoo(self, ctx):
await ctx.reply(file=discord.File('gifs/shoo.gif'))
@commands.command()
async def spell(self, ctx):
await ctx.reply(file=discord.File('gifs/spell.gif'))
@commands.command()
async def tired(self, ctx):
await ctx.reply(file=discord.File('gifs/tired.gif'))
@commands.command()
async def touch(self, ctx):
await ctx.reply(file=discord.File('gifs/touch.gif'))
gif_commands = [f'!{cmd.name}' for cmd in self.get_commands() if cmd.name != 'gifs']
await ctx.reply('\n'.join(sorted(gif_commands)))
async def setup(bot):
await bot.add_cog(Gifs(bot))