mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 23:57:57 -05:00
12 lines
353 B
JavaScript
12 lines
353 B
JavaScript
/* eslint-disable max-len */
|
|
const cowsay = require('cowsay2');
|
|
module.exports = {
|
|
name: 'cowsay',
|
|
alias: [],
|
|
description: 'Moo',
|
|
usage: '<message>',
|
|
trusted: 0,
|
|
execute: function(bot, username, usernameraw, sender, prefix, args) {
|
|
bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: `${cowsay.say(args.join(' '))}`}));
|
|
},
|
|
};
|