mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
Intentional crash on bot
This commit is contained in:
parent
1331fd1940
commit
0df4b3f387
@ -194,4 +194,10 @@ module.exports = (bot) => {
|
||||
});
|
||||
}, '', "Nope!");
|
||||
});
|
||||
|
||||
bot.command('crash', (ctx) => {
|
||||
handleAdminCommand(ctx, async () => {
|
||||
throw new Error('This is a forced crash!');
|
||||
}, '', "Nope!");
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user