mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-12-02 11:57:39 -05:00
12 lines
360 B
JavaScript
12 lines
360 B
JavaScript
/* eslint-disable max-len */
|
|
const cowsay = require('cowsay');
|
|
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({text: args.join(' ')})}`}));
|
|
},
|
|
};
|