Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fiotux/whatscord
Connect your WhatsApp to your Discord to chat on WhatsApp directly in Discord
https://github.com/fiotux/whatscord
discord-bot discord-js discordbot whatsapp whatsapp-chat whatsapp-web
Last synced: 12 days ago
JSON representation
Connect your WhatsApp to your Discord to chat on WhatsApp directly in Discord
- Host: GitHub
- URL: https://github.com/fiotux/whatscord
- Owner: Fiotux
- License: gpl-3.0
- Created: 2024-07-22T22:15:14.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-30T18:56:14.000Z (5 months ago)
- Last Synced: 2024-11-28T22:46:10.145Z (2 months ago)
- Topics: discord-bot, discord-js, discordbot, whatsapp, whatsapp-chat, whatsapp-web
- Language: JavaScript
- Homepage:
- Size: 101 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Why?
Did you ever have the specific problem that you have way too many devices for WhatsApp's 4 device limit, and you use discord all the time and wish that you could just chat with your WhatsApp Contacts inside of discord?
Well, now you can!
And the only things you need are [nodejs](https://nodejs.org/en/download), [Discord](https://discord.com/app) and of course WhatsApp.
(and optionally [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git))
![]()
# Installation
Before we begin you should create a new private discord Server for usage and a discord bot on the [Developer Portal](https://discord.com/developers/applications)
The first step is to clone this repository
git clone https://github.com/Fiotux/WhatsCord.git
cd WhatsCord
Inside the folder, open a command prompt and install the dependencies
npm install
After installing the dependencies, you have to fill out the ``config.json`` file
Example:
{
"token": "NjYwOTA0MTQzNDU5NzEzMDU2.X9O2_g.ZD4DacsvTl9jH3VI3pNzDeocsHk",
"guild": "788856277223735296",
"groupcategory": "858001700215455764",
"privatecategory": "799994116519624704",
"discordaccountid": "518112276788543539",
"sendaudioasvoice": true
}
The token field requires your bots token.The guild field requires the id of the discord Server you want to do this in
The privatecategory field requires the id of the channel category for your private chats
The groupcategory field requires the id of the channel category for your group chats
The discordaccountid field requires the id of your discord account
The sendaudioasvoice field requires either false or true if you want to send audio files as a normal audio file or as a voice message on WhatsApp
After that you can start the Skript
node index.js
And then wait until a qr code loads.
Open WhatsApp on your main phone and go into the add new device menu and scan the qr code to login to whatsapp.Now everytime someone messages you a new channel that is synced to that contact will be created.
You can now just type into the chat or send pictures or audios to chat with the person.# Features
|Features | status |
|--|--|
| images | ✅ |
| audios | ✅ |
| videos | ✅ |
| documents/other | ✅ |
| stickers | ✅ |
| view once Images | ✅ |
| view once Videos | ✅ |
| view once Audios | ✅ |
| replies | ✅ |
| deleting messages | ✅ |
| status | ❌ |
| profile controls | ❌ |You can normally send images, audio, video and other files between discord and WhatsApp.
There can be problems if the file size is too big, but normally you shouldn't have any issues.Stickers are sent to discord as normal image files, and animated stickers aren't animated.
I'll maybe try to fix this in the future.
Stickers from discord on the other hand will be sent to WhatsApp as actual Stickers.For send any type of media as only viewable once, you can just mark the file as a spoiler inside discord, and it will be sent as view once media on discord.
I implemented a database that syncs every message, so replys do work, but I still don't know if this is a good Idea to do with a SQLite database.
I don't really want to implement viewing someone's status inside of discord because that is not really something that is necessary to do inside of discord, but if I get feedback that says this feature is actually wanted, I would implement it.
I am playing with the thought of adding some controls about the WhatsApp profile, like changing the profile picture for example, but I don't really know if that is something that you need to do in discord and actually useful.