Revert "Feature/song replacement"

This commit is contained in:
Kasper Rynning-Tønnesen
2017-11-09 19:51:32 +01:00
committed by GitHub
parent 5a08358f62
commit 7a62057a30
5 changed files with 13 additions and 153 deletions

View File

@@ -57,20 +57,6 @@ module.exports = function() {
}
});
socket.on("error_video", function(msg) {
try {
var _list = msg.channel;
if(_list.length == 0) return;
coll = emojiStrip(_list).toLowerCase();
coll = coll.replace("_", "");
coll = encodeURIComponent(coll).replace(/\W/g, '');
coll = filter.clean(coll);
} catch(e) {
return;
}
Search.check_error_video(msg, coll);
});
socket.on("get_spread", function(){
db.collection("connected_users").find({"_id": "total_users"}, function(err, tot) {
db.collection("connected_users").find({"_id": "offline_users"}, function(err, off) {