-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathList3.js
52 lines (39 loc) · 1.69 KB
/
List3.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
const Trex = require('../events');
const { MessageType, MessageOptions, Mimetype } = require('@adiwajshing/baileys');
const fs = require('fs');
const axios = require('axios');
const ffmpeg = require('fluent-ffmpeg');
const {execFile} = require('child_process');
const cwebp = require('cwebp-bin');
const Config = require('../config');
const need ="*වචනයක් අවශ්යයි 😭*"
Trex.addrex({pattern: '3btn ?(.*)', fromMe: true, dontAdCommandList: true}, (async (message, match) => {
if (match[1] === '') return await message.client.sendMessage(message.jid,need);
var topText, bottomText, tl, t2, t3 ,t4,t5;
if (match[1].includes('/')) {
var split = match[1].split('/');
t5 = split[6];
t4 = split[5];
t3 = split[4];
t2 = split[3];
tl = split[2];
bottomText = split[1];
topText = split[0];
}
const rows = [
{title: `${bottomText}`, description: `\n\n${tl}`, rowId:"rowid1"},
{title: `${t2}`, description: `\n\n${t3}`, rowId:"rowid2"},
{title: `${t4}`, description: `\n\n${t5}`, rowId:"rowid3"}
]
const sections = [{title: `${topText}`, rows: rows}]
const button = {
buttonText: 'Click Here!',
description: `${topText}
⎝🛡️ QUEEN ALEXA 🛡️⎠`,
sections: sections,
listType: 1
}
await message.client.sendMessage(message.jid, button, MessageType.listMessage);
//var sewimage = await axios.get(`https://pencarikode.xyz/api/textpro/stone-text?text=${topText}&text2=${bottomText}`, { responseType: 'arraybuffer' })
// await message.client.sendMessage(message.jid,`${topText}${bottomText}${tl}`, MessageType.text);
}));