@@ -31,18 +31,15 @@ const showcase = async (target: string): Promise<void> => {
3131 await sleep ( 1800 )
3232 }
3333
34- const brief = [
34+ const briefingMd = [
3535 '*Tech Brief — Senin pagi* ☕' ,
3636 '' ,
3737 'Rangkuman harian dari [zaileys](https://github.com/zeative/zaileys).' ,
3838 'Sumber data dipantau otomatis. [](https://github.com/zeative/zaileys)' ,
3939 '' ,
4040 'Rumus hari ini: [E = mc^2|160|44]<https://latex.codecogs.com/png.image?E%20%3D%20mc%5E2>' ,
4141 '' ,
42- 'Tiga sorotan utama hari ini, plus cuplikan kode untuk bikin bot interaktif.' ,
43- ] . join ( '\n' )
44-
45- const code = [
42+ '```typescript' ,
4643 "import { Client } from 'zaileys'" ,
4744 '' ,
4845 'const client = new Client()' ,
@@ -53,87 +50,79 @@ const showcase = async (target: string): Promise<void> => {
5350 " { text: 'Lanjut order?' }," ,
5451 ' )' ,
5552 '})' ,
53+ '```' ,
5654 '' ,
57- "client.on('button-click', (ctx) => {" ,
58- " console.log('clicked:', ctx.buttonId)" ,
59- '})' ,
55+ '| Repo | Stars | Δ 24h |' ,
56+ '|---|---|---|' ,
57+ '| zaileys | 12.4k | +318 |' ,
58+ '| baileys | 15.1k | +92 |' ,
59+ '| venom | 6.2k | +11 |' ,
6060 ] . join ( '\n' )
6161
62- const leaderboard = [
63- [ 'Repo' , 'Stars' , 'Δ 24h' ] ,
64- [ 'zaileys' , '12.4k' , '+318' ] ,
65- [ 'baileys' , '15.1k' , '+92' ] ,
66- [ 'venom' , '6.2k' , '+11' ] ,
67- ]
68-
6962 await send ( 'briefing' , ( ) =>
70- client . send ( target ) . aiRich (
71- [
72- { type : 'text' , text : brief } ,
73- { type : 'code' , language : 'typescript' , content : code } ,
74- { type : 'table' , rows : leaderboard } ,
75- ] ,
76- {
77- title : '📰 zaileys Daily' ,
78- footer : '💡 Dibuat dengan zaileys — github.com/zeative/zaileys' ,
79- sources : [ [ 'https://avatars.githubusercontent.com/u/9919?s=64' , 'https://github.com/zeative/zaileys' , 'zaileys on GitHub' ] ] ,
80- } ,
81- ) ,
63+ client . send ( target ) . text ( briefingMd , {
64+ rich : true ,
65+ title : '📰 zaileys Daily' ,
66+ footer : '💡 Dibuat dengan zaileys — github.com/zeative/zaileys' ,
67+ sources : [ [ 'https://avatars.githubusercontent.com/u/9919?s=64' , 'https://github.com/zeative/zaileys' , 'zaileys on GitHub' ] ] ,
68+ } ) ,
8269 )
8370
84- await send ( 'galeri' , ( ) =>
85- client . send ( target ) . aiRich (
86- [
87- { type : 'text' , text : '*Galeri rilis v4* — geser untuk lihat tangkapan layar & klip.' } ,
88- { type : 'image' , url : [ POSTER , SHOT ] } ,
89- { type : 'video' , url : CLIP , duration : 10 } ,
90- { type : 'tip' , text : 'Ketuk gambar untuk pratinjau penuh' } ,
91- { type : 'suggest' , prompts : [ 'Lihat changelog' , 'Cara upgrade' , 'Bandingkan v3 vs v4' ] } ,
92- ] ,
93- { title : '🖼️ zaileys v4' , footer : '#zaileys' } ,
94- ) ,
95- )
71+ const galeriMd = [
72+ '*Galeri rilis v4* — geser untuk lihat tangkapan layar & klip.' ,
73+ '' ,
74+ `` ,
75+ `` ,
76+ '' ,
77+ ':::video' ,
78+ `${ CLIP } | 10` ,
79+ ':::' ,
80+ '' ,
81+ ':::tip' ,
82+ 'Ketuk gambar untuk pratinjau penuh' ,
83+ ':::' ,
84+ '' ,
85+ ':::suggest' ,
86+ 'Lihat changelog | Cara upgrade | Bandingkan v3 vs v4' ,
87+ ':::' ,
88+ ] . join ( '\n' )
9689
97- await send ( 'sosial' , ( ) =>
98- client . send ( target ) . aiRich (
99- [
100- { type : 'text' , text : 'Lagi ramai dibahas komunitas 👇' } ,
101- {
102- type : 'reels' ,
103- reels : [
104- { username : 'zeative' , title : 'Demo nativeFlow buttons' , url : CLIP , thumbnail : SHOT , views : 12400 , likes : 980 , verified : true } ,
105- { username : 'zeative' , title : 'AIRich rich response' , url : CLIP , thumbnail : POSTER , views : 8800 , likes : 740 , verified : true } ,
106- ] ,
107- } ,
108- {
109- type : 'post' ,
110- posts : [
111- { username : 'zeative' , title : 'zaileys v4 is out' , caption : 'Buttons, carousel, AIRich — semua built-in.' , thumbnail : SHOT , likes : 1500 , comments : 132 , verified : true , source : 'GITHUB' } ,
112- ] ,
113- } ,
114- { type : 'suggest' , prompts : [ 'Tonton lagi' , 'Bagikan' ] } ,
115- ] ,
116- { title : '🔥 Trending' } ,
117- ) ,
118- )
90+ await send ( 'galeri' , ( ) => client . send ( target ) . text ( galeriMd , { rich : true , title : '🖼️ zaileys v4' , footer : '#zaileys' } ) )
11991
120- await send ( 'toko' , ( ) =>
121- client . send ( target ) . aiRich (
122- [
123- { type : 'text' , text : 'Merch komunitas zaileys 🛍️' } ,
124- {
125- type : 'product' ,
126- products : [
127- { title : 'Sticker Pack' , price : 'Rp35.000' , salePrice : 'Rp25.000' , brand : 'zaileys' , image : SHOT , url : 'https://github.com/zeative/zaileys' } ,
128- { title : 'Hoodie Dev' , price : 'Rp320.000' , salePrice : 'Rp275.000' , brand : 'zaileys' , image : POSTER , url : 'https://github.com/zeative/zaileys' } ,
129- { title : 'Mug Coder' , price : 'Rp90.000' , salePrice : 'Rp69.000' , brand : 'zaileys' , image : SHOT , url : 'https://github.com/zeative/zaileys' } ,
130- ] ,
131- } ,
132- { type : 'suggest' , prompts : [ 'Lihat semua produk' , 'Checkout' ] } ,
133- ] ,
134- { title : '🛍️ zaileys Store' } ,
135- ) ,
136- )
92+ const sosialMd = [
93+ 'Lagi ramai dibahas komunitas 👇' ,
94+ '' ,
95+ ':::reels' ,
96+ `- user: zeative | title: Demo nativeFlow buttons | url: ${ CLIP } | thumb: ${ SHOT } | views: 12400 | likes: 980 | verified: true` ,
97+ `- user: zeative | title: AIRich rich response | url: ${ CLIP } | thumb: ${ POSTER } | views: 8800 | likes: 740 | verified: true` ,
98+ ':::' ,
99+ '' ,
100+ ':::post' ,
101+ `- user: zeative | title: zaileys v4 is out | caption: Buttons, carousel, AIRich — semua built-in. | thumb: ${ SHOT } | likes: 1500 | comments: 132 | verified: true | source: GITHUB` ,
102+ ':::' ,
103+ '' ,
104+ ':::suggest' ,
105+ 'Tonton lagi | Bagikan' ,
106+ ':::' ,
107+ ] . join ( '\n' )
108+
109+ await send ( 'sosial' , ( ) => client . send ( target ) . text ( sosialMd , { rich : true , title : '🔥 Trending' } ) )
110+
111+ const tokoMd = [
112+ 'Merch komunitas zaileys 🛍️' ,
113+ '' ,
114+ ':::product' ,
115+ `- title: Sticker Pack | price: Rp35.000 | sale: Rp25.000 | brand: zaileys | image: ${ SHOT } | url: https://github.com/zeative/zaileys` ,
116+ `- title: Hoodie Dev | price: Rp320.000 | sale: Rp275.000 | brand: zaileys | image: ${ POSTER } | url: https://github.com/zeative/zaileys` ,
117+ `- title: Mug Coder | price: Rp90.000 | sale: Rp69.000 | brand: zaileys | image: ${ SHOT } | url: https://github.com/zeative/zaileys` ,
118+ ':::' ,
119+ '' ,
120+ ':::suggest' ,
121+ 'Lihat semua produk | Checkout' ,
122+ ':::' ,
123+ ] . join ( '\n' )
124+
125+ await send ( 'toko' , ( ) => client . send ( target ) . text ( tokoMd , { rich : true , title : '🛍️ zaileys Store' } ) )
137126
138127 console . log ( ` └─ ${ ok } /${ n } terkirim` )
139128}
0 commit comments