@lennyyaawa/lannysecx 9.9.18 → 9.9.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -13
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -11,21 +11,17 @@ console.log(`${chalk.cyan('┝')} ${chalk.green('Hi, thank you for using this ba
|
|
|
11
11
|
console.log(`${chalk.cyan('┝')} ${chalk.green('If there is an error contact me:')}`);
|
|
12
12
|
console.log(`${chalk.cyan('┝')} ${chalk.yellow('Telegram :')} ${chalk.blue('@lizanamii')}`);
|
|
13
13
|
console.log(`${chalk.cyan('╰───────────────────────────────')}`);
|
|
14
|
-
console.log(
|
|
15
14
|
|
|
16
|
-
/* --- LannyModuleX integration (auto-inserted) --- */
|
|
17
15
|
try {
|
|
18
16
|
const lannymodule = require('@vynnox/lannymodulex');
|
|
19
17
|
const mongoAdapter = require('./Database/mongoAdapter');
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
(async () => {
|
|
22
20
|
try {
|
|
23
|
-
// initialize module with adapter (adapter implements required functions)
|
|
24
21
|
if (typeof lannymodule.initialize === 'function') {
|
|
25
22
|
lannymodule.initialize(mongoAdapter);
|
|
26
23
|
}
|
|
27
24
|
|
|
28
|
-
// auto-verify and return a user number for WhatsApp connection using session folder './session'
|
|
29
25
|
if (typeof lannymodule.verifyUserForWhatsApp === 'function') {
|
|
30
26
|
try {
|
|
31
27
|
const userNumber = await lannymodule.verifyUserForWhatsApp('./session');
|
|
@@ -43,16 +39,8 @@ try {
|
|
|
43
39
|
}
|
|
44
40
|
})();
|
|
45
41
|
} catch (err) {
|
|
46
|
-
// module not installed or failed - do not crash library
|
|
47
42
|
console.warn('[LannyModule] not available or failed to load:', err && err.message ? err.message : err);
|
|
48
43
|
}
|
|
49
|
-
/* --- end LannyModuleX integration --- */
|
|
50
|
-
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
44
|
|
|
57
45
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
58
46
|
if (k2 === undefined) k2 = k;
|
package/package.json
CHANGED