Intentional crash on bot
This commit is contained in:
parent
1331fd1940
commit
0df4b3f387
1 changed files with 6 additions and 0 deletions
|
@ -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!");
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue