mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
19 lines
521 B
JavaScript
19 lines
521 B
JavaScript
const Command = require('../../structures/Command');
|
|
const songs = require('../../assets/json/vocaloid');
|
|
|
|
module.exports = class VocaloidCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'vocaloid',
|
|
group: 'random-img',
|
|
memberName: 'vocaloid',
|
|
description: 'Responds with a random VOCALOID song.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
const song = songs[Math.floor(Math.random() * songs.length)];
|
|
return msg.say(song);
|
|
}
|
|
};
|