local changes

This commit is contained in:
esef committed 2026-06-22 22:01:20 +03:00
1 parent a317b0a7e8
commit 8ee7447ae9
21 files changed
+227 -175

No files matched your search

+17 -17
View File
@@ -1,18 +1,18 @@
from discord.ext import commands
class General(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def yuuka(self, ctx):
await ctx.send('kanpeki!')
async def setup(bot):
await bot.add_cog(General(bot))
@commands.Cog.listener()
async def on_command_error(self, ctx, error):
if isinstance(error, commands.CommandNotFound):
return # ignore typos silently
from discord.ext import commands
class General(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
async def yuuka(self, ctx):
await ctx.send('kanpeki!')
async def setup(bot):
await bot.add_cog(General(bot))
@commands.Cog.listener()
async def on_command_error(self, ctx, error):
if isinstance(error, commands.CommandNotFound):
return # ignore typos silently
print(f'Error: {error}')