This commit is contained in:
derpystuff 2023-04-01 14:00:38 +02:00
parent c2ec17e1d7
commit 575bbaa73a

View file

@ -0,0 +1,21 @@
module.exports = {
label: "text",
name: "say",
metadata: {
description: 'speak.',
description_short: 'speak',
examples: ['say hug'],
category: 'dev',
usage: 'say <text>'
},
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}
});
}
};