mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
make development commands silently error
This commit is contained in:
parent
575bbaa73a
commit
9fa0fb1ee4
4 changed files with 3 additions and 48 deletions
|
@ -11,10 +11,7 @@ module.exports = {
|
|||
usage: 'reload'
|
||||
},
|
||||
onBefore: context => context.user.isClientOwner,
|
||||
onCancel: context =>
|
||||
context.reply(
|
||||
`${context.user.mention}, you are lacking the permission \`BOT_OWNER\`.`
|
||||
),
|
||||
onCancel: ()=>{},
|
||||
run: async (context) => {
|
||||
await context.triggerTyping();
|
||||
const time = Date.now();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue