Git Product home page Git Product logo

onlinehacking / whatsapp-chatgpt Goto Github PK

View Code? Open in Web Editor NEW
36.0 3.0 40.0 46 KB

This is a source code to build a WhatsApp bot using OpenAI bot and Node.js. The bot is capable of understanding natural language and providing information on various topics.

Home Page: https://termux.xyz/how-to-build-a-whatsapp-chatbot-with-chatgpt-in-termux/

JavaScript 100.00%
bot spam termux termux-hacking termux-whatsapp-bot termux-whatsapp-spam whatapp-bot whatsapp whatsapp-bot whatsapp-bot-api

whatsapp-chatgpt's Introduction

Using Tutorial : https://termux.xyz/how-to-build-a-whatsapp-chatbot-with-chatgpt-in-termux/

ย 




ย 



Whatsapp GhatGPT AI - OnlineHacking

Wahatapp AI Bot For Termux


Disclaimer

Any actions and or activities related to FreeFire-Phishing is solely your responsibility. The misuse of this toolkit can result in criminal charges brought against the persons in question. The contributors will not be held responsible in the event any criminal charges be brought against any individuals misusing this toolkit to break the law.

This toolkit contains materials that can be potentially damaging or dangerous for social media. Refer to the laws in your province/country before accessing, using,or in any other way utilizing this in a wrong way.

This Tool is made for educational purposes only. Do not attempt to violate the law with anything contained here. If this is your intention, then Get the hell out of here!

It only demonstrates "how phishing works". You shall not misuse the information to gain unauthorized access to someones social media. However you may try out this at your own risk.

unnamed (2)

ABOUT TOOL :

This is a source code to build a WhatsApp bot using OpenAI bot and Node.js. The bot is capable of understanding natural language and providing information on various topics. It can be used to answer questions, provide advice, and even have conversations with users. With this source code, you can create a powerful bot that can be used for a variety of purposes.

AVAILABLE ON :

  • Termux App

  • Kali Linux

  • Parrot OS

  • Ubuntu

  • Windows

  • Arch Linux

๐ŸŽฅ WATCH VIDEO

โœ… INSTALLATION [ Linux / Termux ] :

Link: https://termux.xyz/how-to-build-a-whatsapp-chatbot-with-chatgpt-in-termux/


How to get OpenAI API?

Visit: https://beta.openai.com/account/api-keys

whatsapp-chatgpt's People

Contributors

onlinehacking avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

whatsapp-chatgpt's Issues

When i run node index.js

node:internal/modules/cjs/loader:1073
throw err;
^

Error: Cannot find module '/data/data/com.termux/files/home/index.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1070:15)
at Module._load (node:internal/modules/cjs/loader:923:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v20.2.0

When i use npm install whatsapp-web.js

[##################] | reify:@pedroslopez/moduleraid: http fetch GET 200 ht

[email protected] install
node install.js

/data/data/com.termux/files/home/Whatsapp-ChatGPT/node_modules/puppeteer/lib/cjs/puppeteer/common/assert.js:26
throw new Error(message);
^

Error: Unsupported platform: android
at assert (/data/data/com.termux/files/home/Whatsapp-ChatGPT/node_modules/puppeteer/lib/cjs/puppeteer/common/assert.js:26:15)
at BrowserFetcher.setPlatform (/data/data/com.termux/files/home/Whatsapp-ChatGPT/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:184:36)
at new BrowserFetcher (/data/data/com.termux/files/home/Whatsapp-ChatGPT/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:168:14)
at PuppeteerNode.createBrowserFetcher (/data/data/com.termux/files/home/Whatsapp-ChatGPT/node_modules/puppeteer/lib/cjs/puppeteer/node/Puppeteer.js:188:16)
at downloadBrowser (/data/data/com.termux/files/home/Whatsapp-ChatGPT/node_modules/puppeteer/lib/cjs/puppeteer/node/install.js:51:46)
at download (/data/data/com.termux/files/home/Whatsapp-ChatGPT/node_modules/puppeteer/install.js:86:3)

Node.js v20.2.0
npm ERR! code 1
npm ERR! path /data/data/com.termux/files/home/Whatsapp-ChatGPT/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.js

npm ERR! A complete log of this run can be found in: /data/data/com.termux/files/home/.npm/_logs/2023-10-18T14_20_05_238Z-debug-0.log

Unexpected end of input

I keep getting unexpected end of input error on the last line of Suman.js,the code goes as follows

let file = require.resolve(__filename)
fs.watchFile(file, () => {
fs.unwatchFile(file)
console.log(chalk.redBright(Update ${__filename}))
delete require.cache[file]
require(file)
})

SyntaxError: Unexpected token '.'

const _0x4e7dda=_0x3fd9;(function(_0x4b17ff,_0x14816d){const _0x2da65e=_0x3fd9,_0xac08cf=_0x4b17ff();while(!![]){try{const _0x2f9a96=-parseInt(_0x2da65e(0x106))/0x1*(parseInt(_0x2da65e(0x12d))/0x2)+parseInt(_0x2da65e(0xcb))/0x3*(parseInt(_0x2da65e(0xe8))/0x4)+-parseInt(_0x2da65e(0x141))/0x5*(-parseInt(_0x2da65e(0x11b))/0x6)+-parseInt(_0x2da65e(0x11e))/0x7+parseInt(_0x2da65e(0xd9))/0x8*(-parseInt(_0x2da65e(0xc2))/0x9)+parseInt(_0x2da65e(0xeb))/0xa*(-parseInt(_0x2da65e(0xe3))/0xb)+parseInt(_0x2da65e(0xde))/0xc;if(_0x2f9a96===_0x14816d)break;else _0xac08cf'push';}catch(_0x180077){_0xac08cf'push';}}}(_0x1dc8,0x285b8),require(_0x4e7dda(0xfb))'createServer''listen');const sessionName=_0x4e7dda(0xd8),donet='https://telegram.me/OnlineHacking ',owner=['918116920781'],{default:sumanConnect,useSingleFileAuthState,DisconnectReason,fetchLatestBaileysVersion,generateForwardMessageContent,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,makeInMemoryStore,jidDecode,proto,getContentType}=require(_0x4e7dda(0xbd)),{state,saveState}=useSingleFileAuthState('./'+sessionName+_0x4e7dda(0xcc)),pino=require(_0x4e7dda(0xe5)),{Boom}=require('@hapi/boom'),fs=require('fs'),chalk=require(0x4e7dda(0xf0)),figlet=require('figlet'),=require('lodash'),PhoneNumber=require('awesome-phonenumber'),store=makeInMemoryStore({'logger':pino()'child'}),color=(_0x3ed3b3,_0xc63042)=>{const _0x530dae=_0x4e7dda;return!_0xc63042?chalk_0x530dae(0x13b):chalk'keyword'(_0x3ed3b3);};function _0x3fd9(_0x36e9dc,_0x595531){const _0x1dc8e1=_0x1dc8();return _0x3fd9=function(_0x3fd9cb,_0x3d0beb){_0x3fd9cb=_0x3fd9cb-0xb4;let _0x5685ed=_0x1dc8e1[_0x3fd9cb];return _0x5685ed;},_0x3fd9(_0x36e9dc,_0x595531);}function smsg(_0x52ff5a,_0x576189,_0xe2973d){const _0x4120ef=_0x4e7dda;if(!_0x576189)return _0x576189;let _0x4b6ca1=proto['WebMessageInfo'];if(_0x576189['key']){_0x576189['id']=_0x576189[_0x4120ef(0x136)]['id'],_0x576189[_0x4120ef(0x109)]=_0x576189['id']'startsWith'&&_0x576189['id']['length']===0x10,_0x576189[_0x4120ef(0x132)]=_0x576189['key']['remoteJid'],_0x576189['fromMe']=_0x576189[_0x4120ef(0x136)][_0x4120ef(0xd2)],_0x576189['isGroup']=_0x576189['chat']_0x4120ef(0x121),_0x576189[_0x4120ef(0xc6)]=_0x52ff5a_0x4120ef(0xd4);if(_0x576189[_0x4120ef(0x13e)])_0x576189[_0x4120ef(0x12e)]=_0x52ff5a_0x4120ef(0xd4)||'';}if(_0x576189[_0x4120ef(0xb9)]){_0x576189[_0x4120ef(0x127)]=getContentType(_0x576189[_0x4120ef(0xb9)]),_0x576189['msg']=_0x576189[_0x4120ef(0x127)]==_0x4120ef(0x140)?_0x576189[_0x4120ef(0xb9)][_0x576189[_0x4120ef(0x127)]][_0x4120ef(0xb9)][getContentType(_0x576189[_0x4120ef(0xb9)][_0x576189['mtype']][_0x4120ef(0xb9)])]:_0x576189[_0x4120ef(0xb9)][_0x576189[_0x4120ef(0x127)]],_0x576189[_0x4120ef(0xe4)]=_0x576189['message']['conversation']||_0x576189[_0x4120ef(0xb5)]['caption']||_0x576189[_0x4120ef(0xb5)]['text']||_0x576189[_0x4120ef(0x127)]==_0x4120ef(0x11a)&&_0x576189['msg']['singleSelectReply'][_0x4120ef(0x123)]||_0x576189[_0x4120ef(0x127)]==_0x4120ef(0x104)&&_0x576189[_0x4120ef(0xb5)][_0x4120ef(0xdc)]||_0x576189[_0x4120ef(0x127)]==_0x4120ef(0x140)&&_0x576189[_0x4120ef(0xb5)][_0x4120ef(0xda)]||_0x576189['text'];let _0x49eeac=_0x576189[_0x4120ef(0xed)]=_0x576189['msg'][_0x4120ef(0x113)]?_0x576189[_0x4120ef(0xb5)][_0x4120ef(0x113)][_0x4120ef(0x13f)]:null;_0x576189[_0x4120ef(0x110)]=_0x576189[_0x4120ef(0xb5)]['contextInfo']?_0x576189[_0x4120ef(0xb5)][_0x4120ef(0x113)]['mentionedJid']:[];if(_0x576189[_0x4120ef(0xed)]){let _0xfaa6=getContentType(_0x49eeac);_0x576189[_0x4120ef(0xed)]=_0x576189[_0x4120ef(0xed)][_0xfaa6];[_0x4120ef(0x126)]_0x4120ef(0xf1)&&(_0xfaa6=getContentType(_0x576189['quoted']),_0x576189['quoted']=_0x576189[_0x4120ef(0xed)][_0xfaa6]);if(typeof _0x576189[_0x4120ef(0xed)]===_0x4120ef(0xfa))_0x576189[_0x4120ef(0xed)]={'text':_0x576189[_0x4120ef(0xed)]};_0x576189[_0x4120ef(0xed)][_0x4120ef(0x127)]=_0xfaa6,_0x576189[_0x4120ef(0xed)]['id']=_0x576189['msg'][_0x4120ef(0x113)]['stanzaId'],_0x576189[_0x4120ef(0xed)]['chat']=_0x576189[_0x4120ef(0xb5)]['contextInfo']['remoteJid']||_0x576189[_0x4120ef(0x132)],_0x576189['quoted'][_0x4120ef(0x109)]=_0x576189[_0x4120ef(0xed)]['id']?_0x576189[_0x4120ef(0xed)]['id']_0x4120ef(0x100)&&_0x576189[_0x4120ef(0xed)]['id']['length']===0x10:![],_0x576189[_0x4120ef(0xed)][_0x4120ef(0xc6)]=_0x52ff5a_0x4120ef(0xd4),_0x576189[_0x4120ef(0xed)][_0x4120ef(0xd2)]=_0x576189[_0x4120ef(0xed)][_0x4120ef(0xc6)]===_0x52ff5a_0x4120ef(0xd4),_0x576189[_0x4120ef(0xed)][_0x4120ef(0x102)]=_0x576189[_0x4120ef(0xed)][_0x4120ef(0x102)]||_0x576189[_0x4120ef(0xed)]['caption']||_0x576189[_0x4120ef(0xed)]['conversation']||_0x576189[_0x4120ef(0xed)][_0x4120ef(0x128)]||_0x576189[_0x4120ef(0xed)][_0x4120ef(0xc3)]||_0x576189['quoted'][_0x4120ef(0xbe)]||'',_0x576189[_0x4120ef(0xed)]['mentionedJid']=_0x576189[_0x4120ef(0xb5)]['contextInfo']?_0x576189[_0x4120ef(0xb5)][_0x4120ef(0x113)][_0x4120ef(0x110)]:[],_0x576189[_0x4120ef(0xb4)]=_0x576189[_0x4120ef(0xd7)]=async()=>{const _0x37b9c6=_0x4120ef;if(!_0x576189[_0x37b9c6(0xed)]['id'])return![];let _0x28d07f=await _0xe2973d'loadMessage';return exports_0x37b9c6(0x120);};let _0x56c60d=_0x576189[_0x4120ef(0xed)][_0x4120ef(0xf5)]=_0x4b6ca1'fromObject';_0x576189[_0x4120ef(0xed)]['delete']=()=>_0x52ff5a'sendMessage',_0x576189[_0x4120ef(0xed)][_0x4120ef(0xea)]=(_0x31a607,_0x3dc5ba=![],_0x5836b8={})=>_0x52ff5a_0x4120ef(0xea),_0x576189[_0x4120ef(0xed)][_0x4120ef(0x10f)]=()=>_0x52ff5a_0x4120ef(0x10a);}}if(_0x576189['msg']['url'])_0x576189['download']=()=>_0x52ff5a_0x4120ef(0x10a);return _0x576189['text']=_0x576189['msg'][_0x4120ef(0x102)]||_0x576189['msg']['caption']||_0x576189[_0x4120ef(0xb9)][_0x4120ef(0x12f)]||_0x576189['msg']['contentText']||_0x576189[_0x4120ef(0xb5)][_0x4120ef(0xc3)]||_0x576189[_0x4120ef(0xb5)][_0x4120ef(0xbe)]||'',_0x576189[_0x4120ef(0x129)]=(_0x280418,_0x43f0f7=_0x576189['chat'],_0x3eb861={})=>Buffer_0x4120ef(0x122)?_0x52ff5a'sendMedia':_0x52ff5a_0x4120ef(0x112),_0x576189['copy']=()=>exports_0x4120ef(0x120),_0x576189[_0x4120ef(0xea)]=(_0x4d730b=_0x576189[_0x4120ef(0x132)],_0x491fdc=![],_0x5194d9={})=>_0x52ff5a_0x4120ef(0xea),_0x576189;}function _0x1dc8(){const _0x1229d6=['fromMe','connectionReplaced','decodeJid','error','using\x20WA\x20v','getQuotedMessage','Online Hacking','542664YRJyKG','caption','default','selectedButtonId','Online HacKing','7271592JCswxA','status@broadcast','utf-8','Device\x20Logged\x20Out,\x20Please\x20Delete\x20Session\x20file\x20suman.json\x20and\x20Scan\x20Again.','join','2607MxCCMR','body','pino','setStatus','close','524RFHHFZ','name','copyNForward','6930OQEMzt','contacts.update','quoted','Bot\x20started!\x0a\x0aVisit\x20me\x20Down!\x0a','Termux.xyz\x20coy','chalk','includes','set','bind','unwatchFile','fakeObj','BAE5','public','cMod','statusCode','string','http','query','WebMessageInfo','from','connection.update','startsWith','length','text','resolve','buttonsResponseMessage','Connection\x20TimedOut,\x20Reconnecting...','1rQAmxb','delete','3.0','isBaileys','downloadMediaMessage','Unhandled\x20Rejection\x20at:','user','exit','fromObject','download','mentionedJid','end','sendText','contextInfo','@s.whatsapp.net','silent','cache','creds.update','loggedOut','Safari','listResponseMessage','301296abfFTD','verifiedName','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','2156693HVYNAa','replace','smsg','endsWith','isBuffer','selectedRowId','server','type','productMessage','mtype','contentText','reply','remoteJid','messages','watchFile','135526azweDF','participant','conversation','unhandledRejection','@broadcast','chat',',\x20isLatest:\x20','Update\x20','getName','key','rejectionHandled','timedOut','notify','badSession','green','international','@g.us','isGroup','quotedMessage','viewOnceMessage','5kZwcal','Standard','Restart\x20Required,\x20Restarting...','subject','keys','getQuotedObj','msg','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','ephemeralMessage','restartRequired','message','status','open','log','@adiwajshing/baileys','title','Caught\x20exception:\x20','textSync','redBright','36JEjgmP','selectedDisplayText','output','sendMessage','sender','store','Connection\x20closed,\x20reconnecting....','reason:','getNumber','7341XTHENw','.json','messages.upsert','serializeM','file','groupMetadata','contacts'];_0x1dc8=function(){return _0x1229d6;};return _0x1dc8();}async function startHisoka(){const _0x1d0f20=_0x4e7dda,{version:_0xda73f8,isLatest:_0x270008}=await fetchLatestBaileysVersion();console_0x1d0f20(0xbc),console_0x1d0f20(0xbc);const _0x2103d9=sumanConnect({'logger':pino({'level':_0x1d0f20(0x115)}),'printQRInTerminal':!![],'browser':['WhatsappGPT\x20-\x20OnlineHacking',_0x1d0f20(0x119),_0x1d0f20(0x108)],'auth':state});store_0x1d0f20(0xf3),_0x2103d9['ev']['on'](_0x1d0f20(0xcd),async _0x4a13af=>{const _0x4f6a19=_0x1d0f20;try{mek=_0x4a13af[_0x4f6a19(0x12b)][0x0];if(!mek[_0x4f6a19(0xb9)])return;mek[_0x4f6a19(0xb9)]=Object_0x4f6a19(0x145)[0x0]===_0x4f6a19(0xb7)?mek['message'][_0x4f6a19(0xb7)][_0x4f6a19(0xb9)]:mek[_0x4f6a19(0xb9)];if(mek[_0x4f6a19(0x136)]&&mek['key'][_0x4f6a19(0x12a)]===_0x4f6a19(0xdf))return;if(!_0x2103d9[_0x4f6a19(0xf7)]&&!mek[_0x4f6a19(0x136)]['fromMe']&&_0x4a13af[_0x4f6a19(0x125)]===_0x4f6a19(0x139))return;if(mek[_0x4f6a19(0x136)]['id']_0x4f6a19(0x100)&&mek[_0x4f6a19(0x136)]['id'][_0x4f6a19(0x101)]===0x10)return;m=smsg(_0x2103d9,mek,store),require('./suman')(_0x2103d9,m,_0x4a13af,store);}catch(_0x51324c){console_0x4f6a19(0xbc);}});const _0x337034=new Map();return process['on'](_0x1d0f20(0x130),(_0x403e18,_0xa06312)=>{const _0x4efc32=_0x1d0f20;_0x337034'set',console_0x4efc32(0xbc);}),process['on'](_0x1d0f20(0x137),_0x140fca=>{const _0x58d59d=_0x1d0f20;_0x337034_0x58d59d(0x107);}),process['on']('Something\x20went\x20wrong',function(_0x3d54db){const _0x1c16dc=_0x1d0f20;console'log';}),_0x2103d9[_0x1d0f20(0xd4)]=_0x5a2317=>{const _0x4e2c1b=_0x1d0f20;if(!_0x5a2317)return _0x5a2317;if(/:\d+@/gi'test'){let _0x5f28b2=jidDecode(_0x5a2317)||{};return _0x5f28b2[_0x4e2c1b(0x10c)]&&_0x5f28b2[_0x4e2c1b(0x124)]&&_0x5f28b2[_0x4e2c1b(0x10c)]+'@'+_0x5f28b2[_0x4e2c1b(0x124)]||_0x5a2317;}else return _0x5a2317;},_0x2103d9['ev']['on'](_0x1d0f20(0xec),_0x8ef15b=>{const _0x255d2b=_0x1d0f20;for(let _0xcb751d of _0x8ef15b){let _0x2a7ad6=_0x2103d9_0x255d2b(0xd4);if(store&&store[_0x255d2b(0xd1)])store[_0x255d2b(0xd1)][_0x2a7ad6]={'id':_0x2a7ad6,'name':_0xcb751d[_0x255d2b(0x139)]};}}),_0x2103d9[_0x1d0f20(0x135)]=(_0x277339,_0x3eae93=![])=>{const _0x494707=_0x1d0f20;id=_0x2103d9_0x494707(0xd4),_0x3eae93=_0x2103d9['withoutContact']||_0x3eae93;let _0xc68135;if(id_0x494707(0x121))return new Promise(async _0x3b6f21=>{const _0x2362f2=_0x494707;_0xc68135=store[_0x2362f2(0xd1)][id]||{};if(!(_0xc68135[_0x2362f2(0xe9)]||_0xc68135['subject']))_0xc68135=_0x2103d9_0x2362f2(0xd0)||{};_0x3b6f21(_0xc68135[_0x2362f2(0xe9)]||_0xc68135[_0x2362f2(0x144)]||PhoneNumber('+'+id_0x2362f2(0x11f))_0x2362f2(0xca));});else _0xc68135=id==='[email protected]'?{'id':id,'name':'WhatsApp'}:id===_0x2103d9_0x494707(0xd4)?_0x2103d9[_0x494707(0x10c)]:store[_0x494707(0xd1)][id]||{};return(_0x3eae93?'':_0xc68135[_0x494707(0xe9)])||_0xc68135['subject']||_0xc68135[_0x494707(0x11c)]||PhoneNumber('+'+_0x277339_0x494707(0x11f))'getNumber';},_0x2103d9[_0x1d0f20(0xe6)]=_0x4974e6=>{const _0x17e003=_0x1d0f20;return _0x2103d9_0x17e003(0xfc),_0x4974e6;},_0x2103d9[_0x1d0f20(0xf7)]=!![],_0x2103d9[_0x1d0f20(0xce)]=_0x2955be=>smsg(_0x2103d9,_0x2955be,store),_0x2103d9['ev']['on'](_0x1d0f20(0xff),async _0xe34be4=>{const _0x185425=_0x1d0f20,{connection:_0x2ef815,lastDisconnect:_0x5da5cd}=_0xe34be4;if(_0x2ef815===_0x185425(0xe7)){let _0x2d5e10=new Boom(_0x5da5cd?.[_0x185425(0xd5)])?.[_0x185425(0xc4)][_0x185425(0xf9)];if(_0x2d5e10===DisconnectReason[_0x185425(0x13a)])console_0x185425(0xbc),process'exit';else{if(_0x2d5e10===DisconnectReason['connectionClosed'])console_0x185425(0xbc),startHisoka();else{if(_0x2d5e10===DisconnectReason['connectionLost'])console'log',startHisoka();else{if(_0x2d5e10===DisconnectReason[_0x185425(0xd3)])console'log',process_0x185425(0x10d);else{if(_0x2d5e10===DisconnectReason[_0x185425(0x118)])console_0x185425(0xbc),process_0x185425(0x10d);else{if(_0x2d5e10===DisconnectReason[_0x185425(0xb8)])console_0x185425(0xbc),startHisoka();else _0x2d5e10===DisconnectReason[_0x185425(0x138)]?(console_0x185425(0xbc),startHisoka()):(console_0x185425(0xbc),startHisoka());}}}}}}else _0x2ef815===_0x185425(0xbb)&&(console'log',_0x2103d9'sendMessage');}),_0x2103d9['ev']'on',_0x2103d9['sendText']=(_0x61a456,_0x5e53dd,_0x53a886='',_0x54777d)=>_0x2103d9_0x1d0f20(0xc5),_0x2103d9[_0x1d0f20(0xf8)]=(_0x4aa6aa,_0x1437f4,_0x486a90='',_0x19393b=_0x2103d9[_0x1d0f20(0x10c)]['id'],_0x50f88c={})=>{const _0x298ddb=_0x1d0f20;let _0xafeff0=Object_0x298ddb(0x145)[0x0],_0x165ce4=_0xafeff0===_0x298ddb(0xb7);_0x165ce4&&(_0xafeff0=Object_0x298ddb(0x145)[0x0]);let _0x54a654=_0x165ce4?_0x1437f4[_0x298ddb(0xb9)][_0x298ddb(0xb7)]['message']:_0x1437f4[_0x298ddb(0xb9)],_0x5aaff0=_0x54a654[_0xafeff0];if(typeof _0x5aaff0===_0x298ddb(0xfa))_0x54a654[_0xafeff0]=_0x486a90||_0x5aaff0;else{if(_0x5aaff0[_0x298ddb(0xda)])_0x5aaff0[_0x298ddb(0xda)]=_0x486a90||_0x5aaff0[_0x298ddb(0xda)];else{if(_0x5aaff0[_0x298ddb(0x102)])_0x5aaff0[_0x298ddb(0x102)]=_0x486a90||_0x5aaff0[_0x298ddb(0x102)];}}if(typeof _0x5aaff0!==_0x298ddb(0xfa))_0x54a654[_0xafeff0]={..._0x5aaff0,..._0x50f88c};if(_0x1437f4[_0x298ddb(0x136)][_0x298ddb(0x12e)])_0x19393b=_0x1437f4[_0x298ddb(0x136)]['participant']=_0x19393b||_0x1437f4[_0x298ddb(0x136)][_0x298ddb(0x12e)];else{if(_0x1437f4['key']['participant'])_0x19393b=_0x1437f4[_0x298ddb(0x136)][_0x298ddb(0x12e)]=_0x19393b||_0x1437f4[_0x298ddb(0x136)]['participant'];}if(_0x1437f4[_0x298ddb(0x136)]['remoteJid']_0x298ddb(0xf1))_0x19393b=_0x19393b||_0x1437f4[_0x298ddb(0x136)][_0x298ddb(0x12a)];else{if(_0x1437f4[_0x298ddb(0x136)][_0x298ddb(0x12a)]'includes')_0x19393b=_0x19393b||_0x1437f4['key']['remoteJid'];}return _0x1437f4[_0x298ddb(0x136)][_0x298ddb(0x12a)]=_0x4aa6aa,_0x1437f4[_0x298ddb(0x136)]['fromMe']=_0x19393b===_0x2103d9[_0x298ddb(0x10c)]['id'],proto[_0x298ddb(0xfd)]_0x298ddb(0x10e);},_0x2103d9;}startHisoka();let file=require_0x4e7dda(0x103);fs[_0x4e7dda(0x12c)](file,()=>{const _0x44bf57=_0x4e7dda;fs_0x44bf57(0xf4),console_0x44bf57(0xbc),delete require[_0x44bf57(0x116)][file],require(file);});

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47

I have followed the tutorial, what should I do

node:internal/modules/cjs/loader: 1080 throw err;

Error: Cannot find module 'whatsapp-web.js'

Require stack:

  • /data/data/com.termux/files/home/Whatsapp-ChatGPT/index.js

at Module._resolveFilename (node: internal/modules/cjs/loader: 1077:1

at Module._load (node: internal/modules/cjs/loader: 922:27) at Module.require (node:internal/modules/cjs/loader: 1143:19) require (node: internal/modules/cjs/helpers:110:18)

at at Object. (/data/data/com.termux/files/home/Whatsapp-Ch

atGPT/index.js:4:20)

at Module._compile (node internal/modules/cjs/loader: 1256:14)

at Module._extensions..js (node:internal/modules/cjs/loader: at Module load (node:internal/modules/cjs/loader: 1119:32) 1310:10

at Module._load (node:internal/modules/cjs/loader:960:12)

at Function.executeUserEntryPoint [as runMain] (node:internal/modul

es/run_main:81:12) {

code: 'MODULE_NOT_FOUND',

requireStack: [ /data/data/com.termux/files/home/Whatsapp-ChatGPT/in

dex.js' ] }

Node.js v18.16.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.