Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

upgrading ttapi and some bug fixes. fixes #17

  • Loading branch information...
commit 483a6809081f477d519ead35a947c05e41800490 1 parent 58f85c2
Mac Angell authored
View
5 lib/DjQueueAddOn.js
@@ -2,8 +2,7 @@
module.exports = function DjQueueAddOn(bot) {
- var clone = require('clone'),
- self = this,
+ var self = this,
currentDjs = {},
nextDjIndex = 0,
djQueue = [],
@@ -265,7 +264,7 @@ module.exports = function DjQueueAddOn(bot) {
},
connectHandler = function(data) {
var djs = bot.getCurrentDjsInRoom();
- currentDjs = clone(djs);
+ currentDjs = JSON.parse(JSON.stringify(djs));
isQueueActive = (djs.length >= self.options.djLimit.value);
if (isQueueActive) {
bot.speak('The DJ queue has been activated. Type /aq to add yourself to the queue.');
View
9 lib/LastFmAddOn.js
@@ -29,6 +29,9 @@ module.exports = function LastFmAddOn(bot) {
}
});
}
+ else {
+ replyFunc('There is no song playing at the moment.');
+ }
},
getSimilarArtist = function(msgData, issuerId, replyFunc) {
var currentSong = bot.getCurrentSong();
@@ -48,6 +51,9 @@ module.exports = function LastFmAddOn(bot) {
}
});
}
+ else {
+ replyFunc('There is no song playing at the moment.');
+ }
},
getSimilarSong = function(msgData, issuerId, replyFunc) {
var currentSong = bot.getCurrentSong();
@@ -69,6 +75,9 @@ module.exports = function LastFmAddOn(bot) {
}
});
}
+ else {
+ replyFunc('There is no song playing at the moment.');
+ }
};
this.name = 'lasfm';
View
1  lib/domain/AchievementsTracker.js
@@ -59,6 +59,7 @@ var AchievementsTracker = function(dbConnectionString) {
});
}
var names = [];
+ doc.achievements = doc.achievements || [];
doc.achievements.forEach(function(ach) {
names.push(ach.name);
});
View
20 npm-shrinkwrap.json
@@ -16,15 +16,7 @@
}
},
"ttapi": {
- "version": "1.5.4"
- },
- "file-store": {
- "version": "0.1.0",
- "dependencies": {
- "mkdirp": {
- "version": "0.3.5"
- }
- }
+ "version": "2.1.4"
},
"twss": {
"version": "0.1.6",
@@ -96,10 +88,12 @@
"version": "1.7.2"
},
"eidetic": {
- "version": "0.1.1"
- },
- "clone": {
- "version": "0.1.6"
+ "version": "0.1.1",
+ "dependencies": {
+ "clone": {
+ "version": "0.1.6"
+ }
+ }
},
"lastfm": {
"version": "0.8.4"
View
4 package.json
@@ -7,15 +7,13 @@
"version": "0.1.0",
"dependencies": {
"opter": "0.x.x",
- "ttapi": "1.x.x",
- "file-store": "0.x.x",
+ "ttapi": "2.x.x",
"twss": "0.x.x",
"express": "2.5.x",
"mongoose": "3.5.x",
"underscore": "1.x.x",
"moment": "1.x.x",
"eidetic": "0.1.x",
- "clone": "0.1.x",
"lastfm": "0.8.x"
},
"devDependencies": {
Please sign in to comment.
Something went wrong with that request. Please try again.