mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
28 lines
964 B
JavaScript
28 lines
964 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
|
|
module.exports = class CowsayCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'cowsay',
|
|
group: 'textedit',
|
|
memberName: 'cowsay',
|
|
description: 'Converts text to cowsay.',
|
|
args: [{
|
|
key: 'text',
|
|
prompt: 'What text would you like the cow to say?',
|
|
type: 'string',
|
|
validate: text => {
|
|
if (text.length < 1500)
|
|
return true;
|
|
return `Please keep your content under 1500 characters, you have ${text.length}.`;
|
|
}
|
|
}]
|
|
});
|
|
}
|
|
|
|
run(msg, args) {
|
|
const { text } = args;
|
|
return msg.code(null, `< ${text} >\n \\ ^__^\n \\ (oO)\\_______\n (__)\\ )\\/\\\n U ||----w |\n || ||`);
|
|
}
|
|
};
|