From 67f314dd4e3ed7a52944a6183cfbe69c6f7260f7 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 14 Apr 2019 00:06:55 +0000 Subject: [PATCH] Fix credit when blank, add readme data and bump version --- README.md | 3 ++- commands/util/credit.js | 1 + package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ab82bc1..2d59bf41 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,12 @@ 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 (342) +## Commands (343) ### Utility: * **eval:** Executes JavaScript code. * **changelog:** Responds with the bot's latest 10 commits. +* **credit:** Responds with a command's credits list. * **donate:** Responds with the bot's donation links. * **help:** Displays a list of available commands, or detailed information for a specific command. * **info:** Responds with detailed bot information. diff --git a/commands/util/credit.js b/commands/util/credit.js index e5cfa866..028e39a3 100644 --- a/commands/util/credit.js +++ b/commands/util/credit.js @@ -20,6 +20,7 @@ module.exports = class CreditCommand extends Command { } run(msg, { command }) { + if (!command.credit) return msg.say('This command is credited to no one. It just appeared.'); const embed = new MessageEmbed() .setTitle(command.name) .setColor(0x7289DA) diff --git a/package.json b/package.json index 9734244d..ce224937 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "102.4.0", + "version": "102.5.0", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {