-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.js
More file actions
33 lines (31 loc) · 1.14 KB
/
default.js
File metadata and controls
33 lines (31 loc) · 1.14 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
const nodemailer = require("nodemailer");
const callbell = require("./callbell");
module.exports.common = {
label_remd: (options, event, context, callback) => {
context.simpledb.roomleveldata = {};
callback(options, event, context);
},
label_talk: (options, event, context, callback) => {
context.simpledb.roomleveldata.desactivateBot = false;
callback(options, event, context);
},
};
module.exports.questions = {
label_geti: (options, event, context, callback) => {
context.simpledb.roomleveldata.id = event.message;
callback(options, event, context);
},
label_getn: (options, event, context, callback) => {
context.simpledb.roomleveldata.name = event.message;
callback(options, event, context);
},
label_getp: (options, event, context, callback) => {
context.simpledb.roomleveldata.phone = event.message;
callback(options, event, context);
},
label_gett: (options, event, context, callback) => {
context.simpledb.roomleveldata.type = event.message;
options.data.name = context.simpledb.roomleveldata.name;
callbell.sendToCallbell(options, context, event, event.message, callback);
},
};