mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
speak
This commit is contained in:
parent
c2ec17e1d7
commit
575bbaa73a
1 changed files with 21 additions and 0 deletions
21
commands/message/dev/say.js
Normal file
21
commands/message/dev/say.js
Normal 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}
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue