From 575bbaa73a060101a238796ed8828df8807ed538 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Sat, 1 Apr 2023 14:00:38 +0200 Subject: [PATCH] speak --- commands/message/dev/say.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 commands/message/dev/say.js 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