Files
xiao/commands/random/smw-level.js
T
2019-04-14 21:05:56 +00:00

29 lines
801 B
JavaScript

const Command = require('../../structures/Command');
const { start, end } = require('../../assets/json/smw-level');
module.exports = class SmwLevelCommand extends Command {
constructor(client) {
super(client, {
name: 'smw-level',
aliases: ['super-mario-world-level'],
group: 'random',
memberName: 'smw-level',
description: 'Responds with a random Super Mario World level name.',
credit: [
{
name: 'Super Mario World',
url: 'https://www.nintendo.co.jp/n02/shvc/mw/index.html'
},
{
name: 'List of Super Mario World levels',
url: 'http://old.smwiki.net/wiki/List_of_Super_Mario_World_levels'
}
]
});
}
run(msg) {
return msg.say(`${start[Math.floor(Math.random() * start.length)]} ${end[Math.floor(Math.random() * end.length)]}`);
}
};