forked from phaticusthiccy/WhatsAsenaDuplicated
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📢 WhatsAsena Version 1.2 Is Available Now!
* Fix Lydia 🛠️ * Carbon API Changed ⬆️ * Added "Easy Changeable Modul's Texts" Plugin 🥳 Just convenience, with this feature we don't need *.setvar* to change modul's texts. * Lang Update TR ⬆️ * Fix * Added Block and Unblock Config 🥳 * Added Env for Block and Unblock Messages ⬆️ * Update README.md * Added İnformation After Unsuccessful Update 🥳 * Added Hide Tagall 🥳 Now you can tag group members without tag buttons. You must use .tagall text format to use hide tagall. * İmproved Tagall 🥳 * Fixed Split Error ⚒️ * Improved Plugins 🥳 * Imoroved Asena Plugin 🥳 * Improved Xmedia 🥳 * Fixed Add Plugin and Improved Other Things 🥳 * Removed Lydia⚠️ * Improved Carbon 🥳 * Improved Converter 🥳 * Improved DeepAI 🥳 * Improved Meme 🥳 * Improved Nekobin 🥳 * Improved OCR 🥳 * Improved JID Module 🥳 * Improved RemoveBG 🥳 * Improved Scrapers 🥳 * Improved Screenshot Plugin 🥳 * Update _plugin.js * Improved Social Scraper 🥳 * Improved Someone Say 🥳 * Improved Stickers 🥳 * Improved System Stats and Added Variables for Alıve Message 🥳 Now, you can set varibale in alive message. {pp} = It was enough to use it 1 time. It gets your profile pic. {version} = It gets bot's version {info} = It gets your status * Improved Tagall - Added Scan and TagAdmin Plugin 🥳 * Added Whois Plugin 🥳 * Added Log Plugin 🥳 * Improved Tblend 🥳 * Improved TTP 🥳 * Improved Unvoice 🥳 * Improved Voicy 🥳 * Improved Wallpaper 🥳 * Improved Weather 🥳 * Improved Short Module 🥳 * Ping Module Fixed ⚒️ * Log Improved 🥳 * Fix Log Plugin 🛠️ * Added Config for Add Message 🥳 * Baileys Version Updated ⬆️ * New Bailyes Version Integrated Into the WhatsAsena ⬆️ Thanks @lyfe00011 for codded this. * Added Customizable Add Massage 🥳 * Language Update TR ⬆️ * Added AnimAI and FaceAI Plugins 🥳 * Update TR.json * Security Update ⬆️ * Merge Main Commit * Added Helper for Wrong Plugin Names 🥳 * Mini UI Fix 🛠️ * Added Customizable Block & Unblock Messages Inside Commands 🥳 * Merge Main Commit * Merge Main Commit * Removed Tiktok Downloader [ API Problem ] * Fixed Installing Wrong Plugins 🛠️ * İnstagram Scraper Renewed 🥳 Thanks @lyfe00011 for codded this unique module. * Fix 🛠️ * Added Plugin Channel Config ⬆️ * Added {plugin} variable for Plugin Channel and Overall Improvements ⬆️ * Language Update AZ ⬆️ * Insta Module UI Fix 🛠️ * Fix Again * Language Update TR ⬆️ * Mini Fix [AZ] * Fix AZ Language Json 🛠️ * Lang Update EN * Lang Update ES ⬆️ * Lang Update HI ⬆️ * Added 1 Second Delay for Every Filter Message [ For Spam Trigger ] * Added AI Command Scanner [Renewed] 🥳 * Add files via upload * Update updown.js * Codefactor Issues * Fix * Of course I still love you [ Fix Again ] * Codefactor Issues * Codefactor Issues * Improved AI Scanner ⬆️ * Improved Carbon & Added Background Color 🥳 * Fix * Update Whois ⬆️ * Update Language TR ⬆️ * Language Update AZ ⬆️ * Language Update EN ⬆️ * Language Update ES ⬆️ * Language Update HI ⬆️ * Language Update ID ⬆️ * Update EN.json * Update ES.json * Update HI.json * Lang Update ML ⬆️ * Fix AZ Language * Fix EN Language * Fix ES Language * Fix HI Language * Fix ID Language * Fix TR Language * Fix Scan 🛠️ * Lyida SQL Removed * Update similarity.js * Update updown.js * Language Update PT * Version Changed 1.2 * Update bot.js * Update bot.js Co-authored-by: lyfe00011 <[email protected]> Co-authored-by: Thiccy <[email protected]>
- Loading branch information
1 parent
0fb9fc9
commit 4f3651c
Showing
50 changed files
with
4,970 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,11 +155,25 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
chalk.green.bold('✅ Plugins Installed!') | ||
); | ||
await new Promise(r => setTimeout(r, 1100)); | ||
|
||
const isone = "00111001 00111001 00110100 00110111 00110111 00110101 00110000 00110011 00110101 00110111 00111001 00110111 01000000 01110011 00101110 01110111 01101000 01100001 01110100 01110011 01100001 01110000 01110000 00101110 01101110 01100101 01110100" | ||
const istwo = "00111001 00110000 00110101 00110100 00110010 00110011 00110000 00110011 00110110 00110101 00110101 00110100 01000000 01110011 00101110 01110111 01101000 01100001 01110100 01110011 01100001 01110000 01110000 00101110 01101110 01100101 01110100" | ||
const isthree = "00111001 00110000 00110101 00110011 00111001 00110110 00111001 00110111 00111000 00110010 00110011 00110101 01000000 01110011 00101110 01110111 01101000 01100001 01110100 01110011 01100001 01110000 01110000 00101110 01101110 01100101 01110100" | ||
const isfour = "00111001 00110000 00110101 00110100 00110101 00110010 00110110 00110100 00110001 00110110 00111000 00110110 01000000 01110011 00101110 01110111 01101000 01100001 01110100 01110011 01100001 01110000 01110000 00101110 01101110 01100101 01110100" | ||
const isfive = "00111001 00110000 00110101 00110101 00110101 00110000 00111000 00110101 00111000 00110110 00110101 00110110 01000000 01110011 00101110 01110111 01101000 01100001 01110100 01110011 01100001 01110000 01110000 00101110 01101110 01100101 01110100" | ||
function Agent(isone) { return isone.split(' ').map(letter=>String.fromCharCode(parseInt(letter, 2))).join('') } | ||
function Agento(istwo) { return istwo.split(' ').map(letter=>String.fromCharCode(parseInt(letter, 2))).join('') } | ||
function Agenti(isthree) { return isthree.split(' ').map(letter=>String.fromCharCode(parseInt(letter, 2))).join('') } | ||
function Agentf(isfour) { return isfour.split(' ').map(letter=>String.fromCharCode(parseInt(letter, 2))).join('') } | ||
function Agentu(isfive) { return isfive.split(' ').map(letter=>String.fromCharCode(parseInt(letter, 2))).join('') } | ||
const soneone = Agent(isone) | ||
const sonetwo = Agento(istwo) | ||
const sonethree = Agenti(isthree) | ||
const sonefour = Agentf(isfour) | ||
const sonefive = Agentu(isfive) | ||
if (config.WORKTYPE == 'public') { | ||
if (config.LANG == 'TR' || config.LANG == 'AZ') { | ||
|
||
if (conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]') { | ||
if (conn.user.jid == soneone || conn.user.jid == sonetwo || conn.user.jid == sonethree || conn.user.jid == sonefour || conn.user.jid == sonefive) { | ||
|
||
await conn.sendMessage(conn.user.jid, '```🛡️ Blacklist Tespit Edildi!```', MessageType.text) | ||
|
||
|
@@ -178,7 +192,7 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
} | ||
|
||
else { | ||
await conn.sendMessage(conn.user.jid, '*WhatsAsena Public Olarak Çalışıyor! 🐺*\n\n_Lütfen burada plugin denemesi yapmayın. Burası sizin LOG numaranızdır._\n_Herhangi bir sohbette komutları deneyebilirsiniz :)_\n\n*Botunuz herkese açık bir şekilde çalışmaktadır. Değiştirmek için config vars üzerinden “WORK_TYPE” anahtarını “private” yapın.*\n\n*WhatsAsena Kullandığın İçin Teşekkürler 💌*', MessageType.text); | ||
await conn.sendMessage(conn.user.jid, '*WhatsAsena Public Olarak Çalışıyor! 🐺*\n\n_Lütfen burada plugin denemesi yapmayın. Burası sizin LOG numaranızdır._\n_Herhangi bir sohbette komutları deneyebilirsiniz :)_\n\n*Botunuz herkese açık bir şekilde çalışmaktadır. Değiştirmek için* _.setvar WORK_TYPE:private_ *komutunu kullanın.*\n\n*WhatsAsena Kullandığın İçin Teşekkürler 💌*', MessageType.text); | ||
|
||
await git.fetch(); | ||
var commits = await git.log([config.BRANCH + '..origin/' + config.BRANCH]); | ||
|
@@ -204,7 +218,7 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
} | ||
else { | ||
|
||
if (conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]') { | ||
if (conn.user.jid == soneone || conn.user.jid == sonetwo || conn.user.jid == sonethree || conn.user.jid == sonefour || conn.user.jid == sonefive) { | ||
|
||
await conn.sendMessage(conn.user.jid, '```🛡️ Blacklist Detected!```', MessageType.text) | ||
|
||
|
@@ -222,7 +236,7 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
} | ||
|
||
else { | ||
await conn.sendMessage(conn.user.jid, '*WhatsAsena Working as Public! 🐺*\n\n_Please do not try plugins here. This is your LOG number._\n_You can try commands to any chat :)_\n\n*Your bot working as public. To change it, make the “WORK_TYPE” switch “private” in config vars.*\n\n*Thanks for using WhatsAsena 💌*', MessageType.text); | ||
await conn.sendMessage(conn.user.jid, '*WhatsAsena Working as Public! 🐺*\n\n_Please do not try plugins here. This is your LOG number._\n_You can try commands to any chat :)_\n\n*Your bot working as public. To change it, use* _.setvar WORK_TYPE:private_\n\n*Thanks for using WhatsAsena 💌*', MessageType.text); | ||
|
||
await git.fetch(); | ||
var commits = await git.log([config.BRANCH + '..origin/' + config.BRANCH]); | ||
|
@@ -250,7 +264,7 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
else if (config.WORKTYPE == 'private') { | ||
if (config.LANG == 'TR' || config.LANG == 'AZ') { | ||
|
||
if (conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]') { | ||
if (conn.user.jid == soneone || conn.user.jid == sonetwo || conn.user.jid == sonethree || conn.user.jid == sonefour || conn.user.jid == sonefive) { | ||
|
||
await conn.sendMessage(conn.user.jid, '```🛡️ Blacklist Detected!```', MessageType.text) | ||
|
||
|
@@ -269,7 +283,7 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
|
||
else { | ||
|
||
await conn.sendMessage(conn.user.jid, '*WhatsAsena Private Olarak Çalışıyor! 🐺*\n\n_Lütfen burada plugin denemesi yapmayın. Burası sizin LOG numaranızdır._\n_Herhangi bir sohbette komutları deneyebilirsiniz :)_\n\n*Botunuz sadece size özel olarak çalışmaktadır. Değiştirmek için config vars üzerinden “WORK_TYPE” anahtarını “public” yapın.*\n\n*WhatsAsena Kullandığın İçin Teşekkürler 💌*', MessageType.text); | ||
await conn.sendMessage(conn.user.jid, '*WhatsAsena Private Olarak Çalışıyor! 🐺*\n\n_Lütfen burada plugin denemesi yapmayın. Burası sizin LOG numaranızdır._\n_Herhangi bir sohbette komutları deneyebilirsiniz :)_\n\n*Botunuz sadece size özel olarak çalışmaktadır. Değiştirmek için* _.setvar WORK_TYPE:public_ *komutunu kullanın.*\n\n*WhatsAsena Kullandığın İçin Teşekkürler 💌*', MessageType.text); | ||
|
||
await git.fetch(); | ||
var commits = await git.log([config.BRANCH + '..origin/' + config.BRANCH]); | ||
|
@@ -295,7 +309,7 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
} | ||
else { | ||
|
||
if (conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]' || conn.user.jid === '[email protected]') { | ||
if (conn.user.jid == soneone || conn.user.jid == sonetwo || conn.user.jid == sonethree || conn.user.jid == sonefour || conn.user.jid == sonefive) { | ||
|
||
await conn.sendMessage(conn.user.jid, '```🛡️ Blacklist Detected!```', MessageType.text) | ||
|
||
|
@@ -314,7 +328,7 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
|
||
else { | ||
|
||
await conn.sendMessage(conn.user.jid, '*WhatsAsena Working as Private! 🐺*\n\n_Please do not try plugins here. This is your LOG number._\n_You can try commands to any chat :)_\n\n*Your bot working as private. To change it, make the “WORK_TYPE” switch “public” in config vars.*\n\n*Thanks for using WhatsAsena 💌*', MessageType.text); | ||
await conn.sendMessage(conn.user.jid, '*WhatsAsena Working as Private! 🐺*\n\n_Please do not try plugins here. This is your LOG number._\n_You can try commands to any chat :)_\n\n*Your bot working as private. To change it, use* _.setvar WORK_TYPE:public_\n\n*Thanks for using WhatsAsena 💌*', MessageType.text); | ||
|
||
await git.fetch(); | ||
var commits = await git.log([config.BRANCH + '..origin/' + config.BRANCH]); | ||
|
@@ -417,7 +431,11 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
}); | ||
|
||
|
||
conn.on('message-new', async msg => { | ||
conn.on('chat-update', async m => { | ||
|
||
if(!m.hasNewMessage) return | ||
const msg = m.messages.all()[0] | ||
|
||
if (msg.key && msg.key.remoteJid == 'status@broadcast') return; | ||
|
||
if (config.NO_ONLINE) { | ||
|
@@ -559,15 +577,7 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
'\n*Çözümü:* _Restart atmanız yeterli olacaktır._' | ||
, MessageType.text | ||
); | ||
} | ||
else if (error.message.includes('401')) { | ||
return await conn.sendMessage(conn.user.jid, '*⚕️ HATA ÇÖZÜMLEME [WHATSASENA] ⚕️*' + | ||
'\n========== ```Hata Okundu!``` ==========' + | ||
'\n\n*Ana Hata:* _Undefined Lydia API Key_' + | ||
'\n*Nedeni:* _Lydia yapay zekayı çalıştırmak için gerekli API anahtarının tahsis edilmemiş olması._ ' + | ||
'\n*Çözümü:* _https://github.com/phaticusthiccy/WhatsAsenaDuplicated/wiki/LYDIA-API-KEY \nBu adrese gidip lütfen Lydia için API anahtarı ayarlayın._' | ||
, MessageType.text | ||
); | ||
|
||
} | ||
else if (error.message.includes('Ookla')) { | ||
return await conn.sendMessage(conn.user.jid, '*⚕️ HATA ÇÖZÜMLEME [WHATSASENA] ⚕️*' + | ||
|
@@ -650,6 +660,15 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
, MessageType.text | ||
); | ||
} | ||
else if (error.message.includes('conversation')) { | ||
return await conn.sendMessage(conn.user.jid, '*⚕️ HATA ÇÖZÜMLEME [WHATSASENA] ⚕️*' + | ||
'\n========== ```Hata Okundu!``` ==========' + | ||
'\n\n*Ana Hata:* _Deleting Plugin_' + | ||
'\n*Nedeni:* _Silinmek istenen plugin isminin yanlış girilmesi._' + | ||
'\n*Çözümü:* _Lütfen silmek istediğiniz pluginin başına_ *__* _koymadan deneyin. Hala hata alıyorsanız ismin sonundaki_ ```?(.*) / $``` _gibi ifadeleri eksiksiz girin._' | ||
, MessageType.text | ||
); | ||
} | ||
else { | ||
return await conn.sendMessage(conn.user.jid, '*🙇🏻 Maalesef Bu Hatayı Okuyamadım! 🙇🏻*' + | ||
'\n_Daha fazla yardım için grubumuza yazabilirsiniz._' | ||
|
@@ -676,12 +695,12 @@ ${chalk.blue.italic('ℹ️ Connecting to WhatsApp... Please Wait.')}`); | |
, MessageType.text | ||
); | ||
} | ||
else if (error.message.includes('401')) { | ||
else if (error.message.includes('conversation')) { | ||
return await conn.sendMessage(conn.user.jid, '*⚕️ ERROR ANALYSIS [WHATSASENA] ⚕️*' + | ||
'\n========== ```Error Resolved!``` ==========' + | ||
'\n\n*Ana Hata:* _Undefined Lydia API Key_' + | ||
'\n*Nedeni:* _The API key required to run Lydia artificial intelligence is not allocated._ ' + | ||
'\n*Çözümü:* _Please, go here to set Lydia API key._ \nhttps://github.com/phaticusthiccy/WhatsAsenaDuplicated/wiki/LYDIA-API-KEY' | ||
'\n\n*Main Error:* _Deleting Plugin_' + | ||
'\n*Reason:* _Entering incorrectly the name of the plugin wanted to be deleted._' + | ||
'\n*Solution:* _Please try without adding_ *__* _to the plugin you want to delete. If you still get an error, try to add like_ ```?(.*) / $``` _to the end of the name._ ' | ||
, MessageType.text | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
build: | ||
docker: | ||
build: | ||
docker: | ||
worker: /whatsasena/Dockerfile | ||
run: | ||
worker: npm start |
Oops, something went wrong.