From 97bc1feffcaea0bf04cd8a5fea713e5f766cb323 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 16 May 2018 11:32:27 +0000 Subject: [PATCH] Bye to some useless stuff --- README.md | 6 +- assets/json/fruit.json | 104 ----------------------------- commands/events/is-it-christmas.js | 20 ------ commands/number-edit/percentage.js | 30 --------- commands/number-edit/units.js | 2 +- commands/random/fruit.js | 17 ----- commands/single/hello-world.js | 17 ----- package.json | 2 +- 8 files changed, 3 insertions(+), 195 deletions(-) delete mode 100644 assets/json/fruit.json delete mode 100644 commands/events/is-it-christmas.js delete mode 100644 commands/number-edit/percentage.js delete mode 100644 commands/random/fruit.js delete mode 100644 commands/single/hello-world.js diff --git a/README.md b/README.md index a626886d..9edbb389 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ You can invite the bot to your server using Be sure to also join the [home server](https://discord.gg/sbMe32W) for information and support. -## Commands (308) +## Commands (304) ### Utility: * **prefix**: Shows or sets the command prefix. @@ -69,7 +69,6 @@ information and support. * **fact**: Responds with a random fact. * **fidget**: Responds with a random image of Fidget. * **fortune**: Responds with a random fortune. -* **fruit**: Responds with a random fruit. * **joke**: Responds with a random joke. * **karen**: Responds with a random image of Karen. * **kiss-marry-kill**: Determines who to kiss, who to marry, and who to kill. @@ -99,7 +98,6 @@ information and support. * **dark-theme-light-theme**: Determines whether you use dark or light theme. * **eat-pant**: Eat pant. * **give-flower**: Gives Xiao Pai a flower. -* **hello-world**: Hello world. * **hi**: Hello. * **isnt-joke**: Isn't joke... * **its-joke**: It's joke! @@ -118,7 +116,6 @@ information and support. * **google-doodle**: Responds with a Google Doodle, either the latest one or a random one from the past. * **holidays**: Responds with today's holidays. * **horoscope**: Responds with today's horoscope for a specific Zodiac sign. -* **is-it-christmas**: Responds with whether or not it's Christmas. * **neko-atsume-password**: Responds with today's Neko Atsume password. * **time**: Responds with the current time in a particular location. * **today-in-history**: Responds with an event that occurred today in history. @@ -324,7 +321,6 @@ information and support. * **currency**: Converts money from one currency to another. * **final-grade-calculator**: Determines the grade you need to make on your final to get your desired course grade. * **math**: Evaluates a math expression. -* **percentage**: Determines the percentage one number is of another. * **roman-numeral**: Converts a number to roman numerals. * **units**: Converts units to/from other units. diff --git a/assets/json/fruit.json b/assets/json/fruit.json deleted file mode 100644 index e1ce786b..00000000 --- a/assets/json/fruit.json +++ /dev/null @@ -1,104 +0,0 @@ -[ - "Apple", - "Apricot", - "Avacado", - "Banana", - "Bilberry", - "Blackberry", - "Blackcurrant", - "Blueberry", - "Boysenberry", - "Crab Apples", - "Currant", - "Cherry", - "Cherimoya", - "Chico Fruit", - "Cloudberry", - "Coconut", - "Cranberry", - "Cucumber", - "Custard apple", - "Damson", - "Date", - "Dragonfruit", - "Durian", - "Elderberry", - "Feijoa", - "Fig", - "Goji berry", - "Gooseberry", - "Grape", - "Raisin", - "Grapefruit", - "Guava", - "Honeyberry", - "Huckleberry", - "Jabuticaba", - "Jackfruit", - "Jambul", - "Jujube", - "Juniper berry", - "Kiwano", - "Kiwifruit", - "Kumquat", - "Lemon", - "Lime", - "Loquat", - "Longan", - "Lychee", - "Mango", - "Mangosteen", - "Marionberry", - "Melon", - "Cantaloupe", - "Honeydew", - "Watermelon", - "Miracle fruit", - "Mulberry", - "Nectarine", - "Nance", - "Olive", - "Orange", - "Blood orange", - "Clementine", - "Mandarine", - "Tangerine", - "Papaya", - "Passionfruit", - "Peach", - "Pear", - "Persimmon", - "Plantain", - "Plum", - "Prune (dried plum)", - "Pineapple", - "Plumcot (or Pluot)", - "Pomegranate", - "Pomelo", - "Purple mangosteen", - "Quince", - "Raspberry", - "Salmonberry", - "Rambutan", - "Redcurrant", - "Salal berry", - "Salak", - "Satsuma", - "Soursop", - "Star fruit", - "Solanum quitoense", - "Strawberry", - "Tamarillo", - "Tamarind", - "Ugli fruit", - "Yuzu", - "Chili Pepper", - "Corn Kernel", - "Eggplant", - "Pea", - "Squash", - "Sunflower Seed", - "Tomato", - "Pant", - "Delta's Mystery Fruit" -] diff --git a/commands/events/is-it-christmas.js b/commands/events/is-it-christmas.js deleted file mode 100644 index 4cfe88ef..00000000 --- a/commands/events/is-it-christmas.js +++ /dev/null @@ -1,20 +0,0 @@ -const { Command } = require('discord.js-commando'); - -module.exports = class IsItChristmasCommand extends Command { - constructor(client) { - super(client, { - name: 'is-it-christmas', - group: 'events', - memberName: 'is-it-christmas', - description: 'Responds with whether or not it\'s Christmas.' - }); - } - - run(msg) { - const today = new Date(); - if (today.getMonth() === 11 && today.getDate() === 25) { - return msg.reply('YES!!!', { files: ['https://i.imgur.com/B1fyMlc.jpg'] }); - } - return msg.reply('No, not yet...'); - } -}; diff --git a/commands/number-edit/percentage.js b/commands/number-edit/percentage.js deleted file mode 100644 index 5c9a134c..00000000 --- a/commands/number-edit/percentage.js +++ /dev/null @@ -1,30 +0,0 @@ -const { Command } = require('discord.js-commando'); - -module.exports = class PercentageCommand extends Command { - constructor(client) { - super(client, { - name: 'percentage', - aliases: ['percent'], - group: 'number-edit', - memberName: 'percentage', - description: 'Determines the percentage one number is of another.', - args: [ - { - key: 'amount', - prompt: 'How much of the maximum value should be used?', - type: 'float' - }, - { - key: 'maximum', - prompt: 'What is the maximum value of the percentage?', - type: 'float' - } - ] - }); - } - - run(msg, { amount, maximum }) { - const percentage = (amount / maximum) * 100; - return msg.say(`${amount} is ${percentage}% of ${maximum}.`); - } -}; diff --git a/commands/number-edit/units.js b/commands/number-edit/units.js index d6a8b573..e0642d03 100644 --- a/commands/number-edit/units.js +++ b/commands/number-edit/units.js @@ -5,7 +5,7 @@ module.exports = class UnitsCommand extends Command { constructor(client) { super(client, { name: 'units', - aliases: ['convert-units', 'unit-converter'], + aliases: ['convert-units', 'unit-converter', 'unit'], group: 'number-edit', memberName: 'units', description: 'Converts units to/from other units.', diff --git a/commands/random/fruit.js b/commands/random/fruit.js deleted file mode 100644 index 59867c0f..00000000 --- a/commands/random/fruit.js +++ /dev/null @@ -1,17 +0,0 @@ -const { Command } = require('discord.js-commando'); -const fruits = require('../../assets/json/fruit'); - -module.exports = class FruitCommand extends Command { - constructor(client) { - super(client, { - name: 'fruit', - group: 'random', - memberName: 'fruit', - description: 'Responds with a random fruit.' - }); - } - - run(msg) { - return msg.say(fruits[Math.floor(Math.random() * fruits.length)]); - } -}; diff --git a/commands/single/hello-world.js b/commands/single/hello-world.js deleted file mode 100644 index 5fa7f135..00000000 --- a/commands/single/hello-world.js +++ /dev/null @@ -1,17 +0,0 @@ -const { Command } = require('discord.js-commando'); - -module.exports = class HelloWorldCommand extends Command { - constructor(client) { - super(client, { - name: 'hello-world', - aliases: ['hola-mundo'], - group: 'single', - memberName: 'hello-world', - description: 'Hello world.' - }); - } - - run(msg) { - return msg.say('Hello World!'); - } -}; diff --git a/package.json b/package.json index 19173f9f..62076cf2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "75.1.3", + "version": "76.0.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {