Skip to content
Open

Tq #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
worker: node sen.js
13 changes: 6 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,6 @@ break

//BUTTON
//UPDATE BAILEYS TO LAST VERSION SO THAT FEATURE CAN BE USED
/*
switch(butresx){
case 'OWNER':
senku.sendMessage(from, {displayname: "jeff", vcard: vcard}, MessageType.contact ,{ quoted : sen})
Expand Down Expand Up @@ -1055,7 +1054,7 @@ reply(mess.error)
break

}
*/


//******************** 》CmdWithPrefix《 ********************\\
//const antibot = sen.isBaileys
Expand Down Expand Up @@ -1173,8 +1172,8 @@ reply(`Error`)
break


/* CAN BE USED AFTER UPDATE LAST BAILEYS
case 'menu': case 'help':
//CAN BE USED AFTER UPDATE LAST BAILEYS
case '?':
tag = owner.split('@')[0]
mjid = owner
waa = wa.split('@')[0]
Expand Down Expand Up @@ -1214,7 +1213,7 @@ gbutsan = [
]
gbuttonan = {
imageMessage: mhan1.message.imageMessage,
contentText: `${help(prefix,waktoo,tag,waa,UFree,UReg,UPrem,THit,wib,Tanggal,njing,pushname,usrr,premm,premi,limm,glimm,blan)}`,
contentText: `${help(prefix,pushname,usrr,waktoo,tag,waa,UFree,THit,wib,Tanggal,njing,premm,premi,limm,glimm,blan)}`,
footerText: 'S E N K U B O T 椮 岁 与',
buttons: gbutsan,
headerType: 4
Expand All @@ -1231,7 +1230,7 @@ sendEphemeral: false,
"thumbnail": fakeg,
"sourceUrl": ``
},mentionedJid:[mjid,sender,mjud]},quoted:sen})
break*/
break


case 'help': case 'menu':
Expand All @@ -1253,7 +1252,7 @@ blan = `${getBalance(sender, balance)}`
usrr = `${sender.split("@")[0]}`
runn = process.uptime()
njing = `${kyun(runn)}`
senku.sendMessage(from, help(prefix,waktoo,tag,waa,UFree, wib,Tanggal,njing,pushname,usrr,premm,premi,limm,glimm,blan), text,{contextInfo :{text: 'hi',
senku.sendMessage(from, help(prefix,pushname,usrr,waktoo,tag,waa,UFree, wib,Tanggal,njing,premm,premi,limm,glimm,blan), text,{contextInfo :{text: 'hi',
"forwardingScore": 1000000000,
isForwarded: false,
sendEphemeral: false,
Expand Down
4 changes: 2 additions & 2 deletions lib/menu.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
exports.help = (prefix,waktoo,tag,waa,UFree,THit,wib,Tanggal,njing,pushname,usrr,premm,premi,limm,glimm,blan) => {
exports.help = (prefix,pushname,usrr,waktoo,tag,waa,UFree,THit,wib,Tanggal,njing,premm,premi,limm,glimm,blan) => {
let p = 0
return `Halo kak ${pushname} (${usrr}) Selamat ${waktoo}👋
return `Halo kak ${pushname} ( @${usrr} ) Selamat ${waktoo}👋

*_-BOT INFO-_*

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"author": "Senku",
"license": "ISC",
"dependencies": {
"@adiwajshing/baileys": "^3.5.1",
"@adiwajshing/baileys": "github:adiwajshing/baileys",
"async": "^3.2.0",
"awesome-phonenumber": "^2.55.0",
"axios": "^0.21.1",
Expand Down
8 changes: 2 additions & 6 deletions sen.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const

const
{
WAConnection: _WAConnection,
MessageType,
Expand Down Expand Up @@ -118,14 +119,11 @@ ppimg = 'https://i.ibb.co/rvsVF3r/5012fbb87660.png'
ini_user = senku.contacts[num]
teks = `Halo @${num.split('@')[0]} 👋\nSelamat datang di Grup
*${mdata.subject}*

Intro Member Baru

${shp} Nama:
${shp} Umur:
${shp} Status:
${shp} Askot:

Sering nimbrung dan baca rules grup`
let buff = await getBuffer(ppimg)
senku.sendMessage(mdata.id, buff, MessageType.image, {quoted:fkontakk,caption: teks, contextInfo: {"mentionedJid": [num]}})
Expand Down Expand Up @@ -217,11 +215,9 @@ year: 'numeric'
})
const type = Object.keys(m.message)[0]
senku.sendMessage(m.key.remoteJid, `━━━━⬣ 𝘼𝙉𝙏𝙄 𝘿𝙀𝙇𝙀𝙏𝙀 ⬣━━━━

*Nama : @${m.participant.split("@")[0]}*
*Jam : ${jam} ${week} ${calender}*
*Type : ${type}*

━━━━⬣ 𝘼𝙉𝙏𝙄 𝘿𝙀𝙇𝙀𝙏𝙀 ⬣━━━━`, MessageType.text, {quoted: m.message, contextInfo: {"mentionedJid": [m.participant]}})
senku.copyNForward(m.key.remoteJid, m.message)
})
Expand Down
7 changes: 7 additions & 0 deletions senku.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"clientID": "W8KSDKWa57MEFLGXUXs65A==",
"serverToken": "1@C05qP3TVOuk7qatL2Y00dcxluuk7w2OCgGSgNYOcNQ60JaPVEuHyIM7mzDfbo7qmVlAze+RHOlkq5A==",
"clientToken": "zTq/B8kBUbVzHbCyFDiINFfL4bh9+bOM3DjD3pMshYA=",
"encKey": "narFRqDTDfQwUzQ5n4QqlgW4sZnHyRwv8YdGs/Awkm8=",
"macKey": "B2ElfiLU7GtEagnVK/hMIuVOodQAWIW5xEPbBUp/ERQ="
}