diff --git a/commands/message/dev/say.js b/commands/message/dev/say.js new file mode 100644 index 0000000..76c5e45 --- /dev/null +++ b/commands/message/dev/say.js @@ -0,0 +1,21 @@ +module.exports = { + label: "text", + name: "say", + metadata: { + description: 'speak.', + description_short: 'speak', + examples: ['say hug'], + category: 'dev', + usage: 'say ' + }, + onBefore: context => context.user.isClientOwner, + onCancel: ()=>{}, + run: async (context, args) => { + await context.triggerTyping(); + if(context.message.canDelete) context.message.delete(); + await context.reply({ + content: args.text, + allowedMentions: {parse: [], repliedUser: false} + }); + } +}; \ No newline at end of file