-
Notifications
You must be signed in to change notification settings - Fork 0
/
nmdc_test_user.js
83 lines (78 loc) · 1.79 KB
/
nmdc_test_user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/*var hub = new require("nmdc").Nmdc({
address: "192.168.118.11",
auto_reconnect: true
});
hub.onConnect = function() {
hub.say('Hi everyone!');
};
hub.onPublic = function(user, message) {
if (user != hub.opts.nick) {
hub.say(user + ' just said ' + message);
}
};*/
var a=require('C:/Users/VISHAL ASHANK/Desktop/nmdc proj/nmdc-web/nmdc_module_test.js');
var hub = new a.Nmdc({
address: "192.168.145.81",
auto_reconnect: true,
nick: 'black_ma',
password: 'password_goes_here',
clientIP: '192.168.118.164',
active: false
});
hub.onConnect = function() {
//hub.say('Hi everyone!');
console.log('connected');
/*if(hub.opts.active===true)
hub.activeSearch('F?F?0?1?net');
else
hub.passiveSearch('F?F?0?1?2016');*/
//hub.pm('black_mamba','charas chutiya hai',function(){})
hub.download('aldf');
//hub.pm('winchester',"sdascsc");
//console.log(hub.search('winchester1200'));
};
hub.onPublic = function(user, message) {
if (user != hub.opts.nick) {
//hub.say(user + ' just said ' + message);
}
};
hub.onSystem = function(str){
if(str!=null)
console.log(str);
else
console.log("error");
};
hub.onDebug = function(str){
if(str!=null)
console.log(str);
else
console.log("error");
};
/*
console.log("1");
setTimeout(function(){callback(1)},1000);
console.log("2");
setTimeout(function(){callback(2)},1000);
function callback(x){
console.log("dekh bhai"+x);
}*//*
var fs=require('fs');
function getBears(filepath,done){
fs.readFile(filepath,functin(err,bears){
if(err)return done(err);
fs.readFile('bear',function(err,dict){
compareBears(bears,dict);
})
})
function compareBears(bears,dict){
dict
}
}*//*
let x=function(){
console.log('inslk');
};
let y=function(c){
console.log("sjfajf");
c();
}
y(x);*/