Intentional crash on bot

This commit is contained in:
Lucas Gabriel 2024-09-29 11:14:24 -03:00
parent 1331fd1940
commit 0df4b3f387
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985

View File

@ -194,4 +194,10 @@ module.exports = (bot) => {
}); });
}, '', "Nope!"); }, '', "Nope!");
}); });
bot.command('crash', (ctx) => {
handleAdminCommand(ctx, async () => {
throw new Error('This is a forced crash!');
}, '', "Nope!");
});
}; };