mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
19 lines
511 B
JavaScript
19 lines
511 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
const songs = require('../../assets/json/vocaloid');
|
|
|
|
module.exports = class VocaloidCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'vocaloid',
|
|
group: 'randomimg',
|
|
memberName: 'vocaloid',
|
|
description: 'Sends a random VOCALOID song.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
const song = songs[Math.floor(Math.random() * songs.length)];
|
|
return msg.say(song);
|
|
}
|
|
};
|