Everything except img error handling working

This commit is contained in:
Kasper Rynning-Tønnesen
2017-11-09 17:14:19 +01:00
parent f86a5382f0
commit 3050d56bf8
3 changed files with 135 additions and 0 deletions

View File

@@ -57,6 +57,20 @@ 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) {