From 059c34f746b85d4858cabf238b9689a1895ca0b9 Mon Sep 17 00:00:00 2001 From: SteamingMutt Date: Thu, 26 Nov 2015 08:54:25 +0100 Subject: [PATCH] Small update to fix some message order issues --- README.md | 2 +- discord_bot.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 29ce5b1..f7679b2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # DougleyBot -[![Version](https://img.shields.io/badge/Version-1.1-green.svg?style=flat-square)](https://github.com/SteamingMutt/DougleyBot/releases) +[![Version](https://img.shields.io/badge/Version-1.1.2-green.svg?style=flat-square)](https://github.com/SteamingMutt/DougleyBot/releases) [![Status](https://img.shields.io/badge/Status-Ready-green.svg?style=flat-square)]() [![Node](https://img.shields.io/badge/Node-4.2.1-blue.svg?style=flat-square)](http://nodejs.org) [![NPM](https://img.shields.io/badge/NPM-2.14.7-blue.svg?style=flat-square)](http://nodejs.org) diff --git a/discord_bot.js b/discord_bot.js index 27dc8ae..020da0d 100644 --- a/discord_bot.js +++ b/discord_bot.js @@ -4,6 +4,7 @@ Everytime a message matches a command, the bot will respond. ======================== */ +var version = "1.1.2"; var Discord = require("discord.js"); @@ -145,9 +146,9 @@ var commands = { process: function(bot, msg, suffix) { var msgArray = []; msgArray.push("My uptime is " + (Math.round(bot.uptime/(1000*60*60))) + " hours, " + (Math.round(bot.uptime/(1000*60))%60) + " minutes, and " + (Math.round(bot.uptime/1000)%60) + " seconds."); - msgArray.push("Currently, I'm in " + bot.channels.length + " channels, and in " + bot.servers.length + " servers."); + msgArray.push("Currently, I'm in " + bot.servers.length + " servers, and in " + bot.channels.length + " channels."); msgArray.push("Currently, I'm serving " + bot.users.length + " users."); - msgArray.push("To Discord, I'm known as " + bot.user + "."); + msgArray.push("To Discord, I'm known as " + bot.user + ", and I'm running DougleyBot version " + version); bot.sendMessage(msg, msgArray); } },