Author SHA1 Message Date
guus 38877451c5 add better user error handling 2026-10-08 18:29:46 +02:00
mark b3efbaa291 Merge pull request 'beleefdheid' (#36) from beleefd into master
continuous-integration/drone/push Build is failing
Reviewed-on: #36
2026-08-03 21:49:26 +02:00
mark 896bc3afd7 belefd
continuous-integration/drone/push Build is failing
2026-08-03 21:49:18 +02:00
mark 99513b16d4 Merge pull request 'De grote kankerhomo update' (#35) from kankerhomo into master
continuous-integration/drone/push Build is failing
Reviewed-on: #35
2026-08-03 21:43:16 +02:00
mark cc7a5f2f28 adds kankerhomo to insult
continuous-integration/drone/push Build is failing
2026-08-03 21:39:20 +02:00
2 changed files with 16 additions and 1 deletions

No files matched your search

+1 -1
View File
@@ -830,4 +830,4 @@ class Shitpost(commands.Cog):
message += gezaagd message += gezaagd
else: else:
message += "De waarheid over zaagmans is niet te doorgronden." message += "De waarheid over zaagmans is niet te doorgronden."
await ctx.channel.send(message) await ctx.channel.send(message)
+15
View File
@@ -29,6 +29,21 @@ intents.members = True
bot = commands.Bot(command_prefix=commands.when_mentioned_or('!'), description='Stroopwafel. Shitpost bot extraordinaire.', pm_help=True, intents=intents) bot = commands.Bot(command_prefix=commands.when_mentioned_or('!'), description='Stroopwafel. Shitpost bot extraordinaire.', pm_help=True, intents=intents)
@bot.event
async def on_command_error(ctx, error):
if isinstance(error, commands.BadArgument):
await ctx.send(f"{ctx.author.mention} Onheus gebruik van het commando. Lees de docs nog eens door:")
await ctx.send_help(ctx.command)
return
if isinstance(error, commands.MissingRequiredArgument):
await ctx.send(f"{ctx.author.mention} Volgens bij ben je nog iets vergeten toe te voegen aan dit commando. Lees de docs nog eens door:")
await ctx.send_help(ctx.command)
return
if isinstance(error, commands.CommandNotFound):
await ctx.send(f"{ctx.author.mention} Vermoedelijk bedoelde je iets anders. Typ !help voor alle opties.")
return
raise error
@bot.event @bot.event
async def on_ready(): async def on_ready():
await add_cogs(bot) await add_cogs(bot)