diff --git a/README.md b/README.md index 82524815..fe092d53 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Xiao is a Discord bot coded in JavaScript with 6. Run `npm i -g pm2` to install PM2. 7. Run `pm2 start Xiao.js --name xiao` to run the bot. -## Commands (344) +## Commands (345) ### Utility: * **eval:** Executes JavaScript code. @@ -115,6 +115,7 @@ Xiao is a Discord bot coded in JavaScript with * **security-key:** Responds with a random security key. * **shiba:** Responds with a random image of a Shiba Inu. * **shower-thought:** Responds with a random shower thought, directly from r/Showerthoughts. +* **smw-level:** Responds with a random Super Mario World level name. * **subreddit:** Responds with a random post from a subreddit. * **suggest-command:** Suggests a random command for you to try. * **superpower:** Responds with a random superpower. diff --git a/assets/json/smw-level.json b/assets/json/smw-level.json new file mode 100644 index 00000000..4183bc96 --- /dev/null +++ b/assets/json/smw-level.json @@ -0,0 +1,95 @@ +{ + "start": [ + "Bonus", + "Vanilla", + "Top Secret", + "Donut", + "Mortan's", + "Green", + "Butter", + "Ludwig's", + "Cheese Bridge", + "Cookie", + "Soda", + "Star", + "Yellow", + "Sunken", + "Wendy's", + "Chocolate", + "Forest", + "Roy's", + "Choco", + "Iggy's", + "Yoshi's", + "Front", + "Back", + "Bowser's", + "Valley of", + "Larry's", + "Red", + "Lemmy's", + "Forest of", + "Blue", + "Funky", + "Outrageous", + "Mondo", + "Groovy", + "Gnarly", + "Tubular", + "Way Cool", + "Awesome", + "Unused", + "Eat" + ], + "end": [ + "Game Room", + "Secret 2", + "Secret 3", + "Area", + "Ghost House", + "Plains 3", + "Plains 4", + "Castle", + "Switch Palace", + "Plains 2", + "Secret 1", + "Fortress", + "Bridge 1", + "Bridge 2", + "Mountain", + "Lake", + "Road", + "Secret House", + "Plains 1", + "Plains", + "Ghost Ship", + "Island 5", + "Island 4", + "Island 1", + "Island 3", + "Island 2", + "House", + "Secret 1", + "Dome 3", + "Door", + "Bowser 4", + "Bowser 3", + "Bowser 2", + "Bowser 1", + "Secret", + "Dome 2", + "Dome 4", + "Dome 1", + "Illusion 1", + "Illusion 4", + "Illusion 2", + "Secret Area", + "Illusion 3", + "World 2", + "World 3", + "World 1", + "World 4", + "World 5", + "Pant" + ] +} diff --git a/commands/random/smw-level.js b/commands/random/smw-level.js new file mode 100644 index 00000000..b181ea16 --- /dev/null +++ b/commands/random/smw-level.js @@ -0,0 +1,28 @@ +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)]}`); + } +}; diff --git a/package.json b/package.json index c7be4a77..8939e0c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "102.6.0", + "version": "102.7.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {