-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
59 lines (47 loc) · 1.09 KB
/
test.js
File metadata and controls
59 lines (47 loc) · 1.09 KB
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
try {
mod = require('./scenarios')
} catch (err) {
console.log(err.code === `MODULE_NOT_FOUND`)
};
console.log(mod);
const scenario = require('./scenario');
scenario.name = "bot-temp";
for (let item in scenario) {
console.log(scenario[item])
}
let myArray = [
[1, 2],
[3, 4, 5],
[6, 7, 8, 9], 45, 87
];
let myNewArray = [].concat.apply([], myArray)
// let myNewArray = myArray.reduce(function(prev, curr) {
// return prev.concat(curr);
// });
console.log(myNewArray);
// *************************************************
let handler = {}
// [Tanlovlar]
handler.contests = function(ctx){
}
// [Loyiha yuborish]
handler.send_project = function(ctx){
}
// [English for science]
handler.english_for_science = function(ctx){
}
// [G'oya berish]
handler.send_idea = function(ctx){
}
// [Biz bilan bog'lanish]
handler.contact_us = function(ctx){
ctx.deleteMessage()
ctx.scene.enter('contact_us')
}
// [Bot haqida]
handler.about = function(ctx){
ctx.deleteMessage()
ctx.scene.enter('about')
}
module.exports = handler
//*************************************************