pissbot-9000/commands/message/dev/say.js
derpystuff 575bbaa73a speak
2023-04-01 14:00:38 +02:00

21 lines
No EOL
522 B
JavaScript

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}
});
}
};