From 0df4b3f3875e97d431b5535a35e4d49cdbfcac3d Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Date: Sun, 29 Sep 2024 11:14:24 -0300 Subject: [PATCH] Intentional crash on bot --- commands/crew.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commands/crew.js b/commands/crew.js index b18b0d6..7f8c464 100644 --- a/commands/crew.js +++ b/commands/crew.js @@ -194,4 +194,10 @@ module.exports = (bot) => { }); }, '', "Nope!"); }); + + bot.command('crash', (ctx) => { + handleAdminCommand(ctx, async () => { + throw new Error('This is a forced crash!'); + }, '', "Nope!"); + }); };