mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
21 lines
No EOL
522 B
JavaScript
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}
|
|
});
|
|
}
|
|
}; |