mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
21 lines
536 B
JavaScript
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}!`);
|
|
}
|
|
};
|