modified: src/main.js
This commit is contained in:
parent
01f1e68888
commit
96ef7a2e4b
|
@ -13,7 +13,7 @@ var probe = require('node-ffprobe');
|
||||||
var swig = require('swig');
|
var swig = require('swig');
|
||||||
|
|
||||||
var templates = {};
|
var templates = {};
|
||||||
var debug = true;
|
var debug = false;
|
||||||
var upload = true;
|
var upload = true;
|
||||||
var admins = [];
|
var admins = [];
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ bot.on('message', (e) => {
|
||||||
var getUser = (u, n) => {
|
var getUser = (u, n) => {
|
||||||
bot.whois(u, n, (fn)=>{ }); // send whois
|
bot.whois(u, n, (fn)=>{ }); // send whois
|
||||||
var start = Date.now();
|
var start = Date.now();
|
||||||
while(Date.now() < start + 1000) {} // block script for catch whois
|
while(Date.now() < start + 500) {} // block script for catch whois
|
||||||
return bot.getUser(u, n);
|
return bot.getUser(u, n);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user