-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqr.js
64 lines (59 loc) · 1.98 KB
/
qr.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
/* Copyright (C) 2021 CyberMatrix.
Licensed under the GPL-3.0 License;
you may not use this file except in compliance with the License.
Colombo Media House - CyberMatrix
*/
const chalk = require('chalk');
const { WAConnection, MessageType } = require('@adiwajshing/baileys');
const fs = require('fs');
async function whatsAsena() {
const conn = new WAConnection();
conn.logger.level = 'warn';
conn.version = [2, 2126, 14]
conn.on('connecting', async () => {
console.log(`${chalk.green.bold('Queen Nimni')}${chalk.green.bold('Team')}
${chalk.white.italic('Nimni String code recipient')}
${chalk.blue.bold('ℹ️ Connecting Nimni... Please wait.')}`);
});
conn.on('open', async () => {
console.log(
chalk.green.bold('Queen Nimni QR Code: '),
'NEUTRO;;;' +
Buffer.from(JSON.stringify(conn.base64EncodedAuthInfo())).toString(
'base64'
)
);
await conn.sendMessage(
conn.user.jid,
'NEUTRO;;;' +
Buffer.from(JSON.stringify(conn.base64EncodedAuthInfo())).toString(
'base64'
),
MessageType.text
);
if (conn.user.jid.startsWith('91')) {
await conn.sendMessage(
conn.user.jid,
'*~___________~* *'+ conn.user.name + ' ~___________~*\n\n*▪️ Nimni Scanned✅️*\n*▪️Thanks For Choosing Queen Nimni 💞*',
MessageType.text
);
} else {
await conn.sendMessage(
conn.user.jid,
'*~_____________~* *'+ conn.user.name + ' ~_____________~*\n\n*▪️ Nimni Successfully Scanned✅️*\n*▪️Thanks For Choosing Queen Nimni 💞*',
MessageType.text
);
}
console.log(
chalk.green.bold(
"\n\n Nigalkku sandesham pakarthan \n kaliyunnillegil,whatsapp parishodikkuka \n nigalude numberillekku code ayachinnu!\n\n\n\n"
),
chalk.green.bold(
'IF YOU CANNOT COPY THE MESSAGE, PLEASE CHECK WHATSAPP. QR CODE SENT TO YOUR OWN NUMBER!'
)
);
process.exit(0);
});
await conn.connect();
}
whatsAsena();