Skip to content

Commit

Permalink
📢 WhatsAsena Version 1.2 Is Available Now!
Browse files Browse the repository at this point in the history
* 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
3 people authored Apr 29, 2021
1 parent 0fb9fc9 commit 4f3651c
Show file tree
Hide file tree
Showing 50 changed files with 4,970 additions and 267 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ By establishing the Asena, you are deemed to have accepted these responsibilitie

## Developers

[![Yusuf Usta](https://github.com/yusufusta.png?size=100)](https://quiec.tech) | [![Phaticusthiccy](https://github.com/phaticusthiccy.png?size=100)](https://github.com/phaticusthiccy) | [![Alperen Ç](https://github.com/xacnio.png?size=100)](https://github.com/xacnio)[![Justin Thoms](https://github.com/justinthoms.png?size=100)](https://github.com/justinthoms)[![CW4RR10R](https://github.com/CW4RR10R.png?size=100)](https://github.com/CW4RR10R)
[![Yusuf Usta](https://github.com/yusufusta.png?size=100)](https://www.fusuf.codes) | [![Phaticusthiccy](https://github.com/phaticusthiccy.png?size=100)](https://github.com/phaticusthiccy) | [![Alperen Ç](https://github.com/xacnio.png?size=100)](https://github.com/xacnio)[![Justin Thoms](https://github.com/justinthoms.png?size=100)](https://github.com/justinthoms)[![CW4RR10R](https://github.com/CW4RR10R.png?size=100)](https://github.com/CW4RR10R)
----|----|----|----|----
[Yusuf Usta](https://t.me/fusufs) | [Phaticusthiccy](https://github.com/phaticusthiccy) | [Alperen Ç](https://t.me/xacnio) | [justinthoms](https://t.me/Mr_justinthomas) | [CW4RR10R](https://github.com/CW4RR10R)
Author, Base, Bug Fixes, Modules | Author, Base, Bug Fixes, Modules | Bug Fixes, Modules, Idea | Modules, Idea | Modules
Author, Base, Bug Fixes, Modules | Developer, Base, Bug Fixes, Modules | Bug Fixes, Modules, Idea | Modules, Idea | Modules

## Thanks To
- [@adiwajshing](https://github.com/adiwajshing) for coded [Baileys](https://github.com/adiwajshing/Baileys)
Expand Down
15 changes: 15 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@
"required": false,
"value": "default"
},
"BLOCK_MESSAGE": {
"description": "Düzenlenebilir Block Mesajı. Customizable Block Message! Use => default, to change back.",
"required": false,
"value": "default"
},
"UNBLOCK_MESSAGE": {
"description": "Düzenlenebilir Unblock Mesajı. Customizable Unblock Message! Use => default, to change back.",
"required": false,
"value": "default"
},
"WORK_TYPE": {
"description": "WhatsAsena Working Type. If you use “public”, everyone can use the bot. Else if you use “private”, only you can use your bot.",
"required": true,
Expand Down Expand Up @@ -83,6 +93,11 @@
"required": false,
"value": "default"
},
"ADD_MESSAGE": {
"description": "Customizable Add Message! Use => default, to change back.",
"required": false,
"value": "default"
},
"KICKME_MESSAGE": {
"description": "Customizable Kickme Message! Use => default, to change back.",
"required": false,
Expand Down
65 changes: 42 additions & 23 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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]);
Expand All @@ -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)

Expand All @@ -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]);
Expand Down Expand Up @@ -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)

Expand All @@ -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]);
Expand All @@ -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)

Expand All @@ -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]);
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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] ⚕️*' +
Expand Down Expand Up @@ -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._'
Expand All @@ -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
);
}
Expand Down
6 changes: 5 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ DATABASE_URL = process.env.DATABASE_URL === undefined ? './whatsasena.db' : proc
DEBUG = process.env.DEBUG === undefined ? false : convertToBool(process.env.DEBUG);

module.exports = {
VERSION: 'v1.0 Global Stable',
VERSION: 'v1.2 Global Stable',
CHANNEL: 'https://t.me/remasterplugin',
SESSION: process.env.ASENA_SESSION === undefined ? '' : process.env.ASENA_SESSION,
GANSTYLE: process.env.GAN_IMAGE === undefined ? 'https://i.hizliresim.com/loUtAb.jpg' : process.env.GAN_IMAGE,
LANG: process.env.LANGUAGE === undefined ? 'TR' : process.env.LANGUAGE.toUpperCase(),
ALIVEMSG: process.env.ALIVE_MESSAGE === undefined ? 'default' : process.env.ALIVE_MESSAGE,
KICKMEMSG: process.env.KICKME_MESSAGE === undefined ? 'default' : process.env.KICKME_MESSAGE,
BLOCKCHAT: process.env.BLOCK_CHAT === undefined ? false : process.env.BLOCK_CHAT,
ADDMSG: process.env.ADD_MESSAGE === undefined ? 'default' : process.env.ADD_MESSAGE,
MUTEMSG: process.env.MUTE_MESSAGE === undefined ? 'default' : process.env.MUTE_MESSAGE,
BLOCKMSG: process.env.BLOCK_MESSAGE === undefined ? 'default' : process.env.BLOCK_MESSAGE,
UNBLOCKMSG: process.env.UNBLOCK_MESSAGE === undefined ? 'default' : process.env.UNBLOCK_MESSAGE,
UNMUTEMSG: process.env.UNMUTE_MESSAGE === undefined ? 'default' : process.env.UNMUTE_MESSAGE,
WORKTYPE: process.env.WORK_TYPE === undefined ? 'private' : process.env.WORK_TYPE,
PROMOTEMSG: process.env.PROMOTE_MESSAGE === undefined ? 'default' : process.env.PROMOTE_MESSAGE,
Expand Down
4 changes: 2 additions & 2 deletions heroku.yml
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
Loading

0 comments on commit 4f3651c

Please sign in to comment.