make development commands silently error

This commit is contained in:
derpystuff 2023-04-01 14:02:58 +02:00
parent 575bbaa73a
commit 9fa0fb1ee4
4 changed files with 3 additions and 48 deletions

View file

@ -20,10 +20,7 @@ module.exports = {
{ default: true, name: "async", type: "bool", help: "Async evaluation" }
],
onBefore: context => context.user.isClientOwner,
onCancel: context =>
context.reply(
`${context.user.mention}, you are lacking the permission \`BOT_OWNER\`.`
),
onCancel: ()=>{},
run: async (context, args) => {
await context.triggerTyping();
const { matches } = Utils.regex(