Skip to content

Commit

Permalink
Merge pull request #41 from nuclearace/s1.0
Browse files Browse the repository at this point in the history
S1.0
  • Loading branch information
nuclearace committed Oct 25, 2014
2 parents ae77b01 + d709cbf commit 63773d3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions lib/cytubebot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var commands = require("./chatcommands")
var Database = require("./database")
var fs = require("fs")
var botHandlers = require("./bothandlers")
var io = require("socket.io-client")
var IOServer = require("./ioserver")
var IRC = require("./ircclient")
var logger = require("./logger")
Expand Down Expand Up @@ -467,12 +466,12 @@ CytubeBot.prototype.getSocketURL = function(server) {

if (server.match(defaultReg)) {
this.logger.syslog.log("!~~~! Found socketIO info in config")
return io.connect(server)
return require('socket.io-client')(server)
} else {
this.logger.syslog.log("!~~~! Looking up socketIO info from server")
api.APICall(server, "socketlookup", null, function(data) {
if (data.match(defaultReg)) {
bot.socket = io.connect(data)
bot.socket = require('socket.io-client')(data)
botHandlers.addHandlers(bot)
bot.start()
}
Expand Down
1 change: 0 additions & 1 deletion lib/ioserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ function IOServer(srv, bot) {
})
})
})
io.set("log level", 1)
};

IOServer.prototype.getEmotes = function(callback) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
},
"dependencies": {
"async": "~0.9.0",
"socket.io-client": "<1.0.0",
"socket.io-client": "^1.1.0",
"libxmljs": "~0.11.0",
"sqlite3": "~2.2.3",
"cleverbot-node": "",
"mstranslator": "",
"express": "~4.4.1",
"socket.io": "<1.0.0",
"socket.io": "^1.1.0",
"jade": "~1.3.1",
"forever-monitor": "~1.2.3",
"irc": "~0.3.7",
Expand Down
2 changes: 1 addition & 1 deletion www/js/bot.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
socket = io.connect(IO_URL)
socket = io(IO_URL)
setTimeout(function() {
socket.emit("getStats")
}, 1000)
Expand Down
2 changes: 1 addition & 1 deletion www/js/emotes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
socket = io.connect(IO_URL)
socket = io(IO_URL)
setTimeout(function() {
socket.emit("getRoom")
socket.emit("getEmotes")
Expand Down
2 changes: 1 addition & 1 deletion www/js/internals.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
socket = io.connect(IO_URL)
socket = io(IO_URL)

socket.on("connect", function() {
socket.emit("getInternals")
Expand Down

0 comments on commit 63773d3

Please sign in to comment.