Files
xiao/commands/games/fishy.js
T
Daniel Odendahl Jr caba065235 Change some strings
2017-09-13 02:08:06 +00:00

21 lines
536 B
JavaScript

const Command = require('../../structures/Command');
const fishes = ['🐟', '🐠', '🐡', '🔧'];
module.exports = class FishyCommand extends Command {
constructor(client) {
super(client, {
name: 'fishy',
aliases: ['fish', 'fishing'],
group: 'games',
memberName: 'fishy',
description: 'Go fishing.'
});
}
run(msg) {
const fish = fishes[Math.floor(Math.random() * fishes.length)];
if (fish === '🔧') return msg.say(`You caught a ${fish}... Too bad...`);
return msg.say(`You caught a ${fish}!`);
}
};