Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Commit

Permalink
Small update to fix some message order issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SteamingMutt authored and SteamingMutt committed Nov 26, 2015
1 parent 08d1f6b commit 059c34f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
5 changes: 3 additions & 2 deletions discord_bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Everytime a message matches a command, the bot will respond.
========================
*/
var version = "1.1.2";

var Discord = require("discord.js");

Expand Down Expand Up @@ -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);
}
},
Expand Down

0 comments on commit 059c34f

Please sign in to comment.