WhatsAppToDiscord is a Discord bot that uses WhatsApp Web as a bridge between Discord and WhatsApp. It is built on top of whatsmeow and discordgo libraries.
- Way too low memory usage than a web browser.
- Supports media (Image, Video, Audio, Document)
- Open Source (You can always compile for yourself)
- Self Hosted (You own your data)
But most importantly you can open Discord overlay and reply to your messages without a break.
start <number with country code or name>
: Starts a new conversationlist
: Lists existing chatslist <chat name to search>
: Finds chats that contain the given argumentaddToWhitelist <channel name>
: Adds specified conversation to the whitelistremoveFromWhitelist <channel name>
: Removes specified conversation from the whitelistlistWhitelist
: Lists all whitelisted conversationsenableDCPrefix
: Starts adding your Discord username to messages sent to WhatsAppdisableDCPrefix
: Stops adding your Discord username to messages sent to WhatsAppenableWAPrefix
: Starts adding sender's name to messages sent to DiscorddisableWAPrefix
: Stops adding sender's name to messages sent to Discordping
: Sends "Pong! <Now - Time Message Sent>ms" back
Run the start.bat, it will restart the bot if it crashes. If you do notice a restart please submit it on Issues tab, so I can further fix bugs of the bot.
- Download the latest version from here
- Move the file you downloaded to a folder as the bot will create various files
- Go to Discord applications
- Click the blue button on the right upper corner with the text "New Application"
- Move to "Bot" section
- Click the blue button on the right with the text "Add a bot"
- Click the blue button on the right of icon of bot with the text "Copy"
- Run the bot
- Then paste it when it asks you to, and press enter
- A URL should appear. Open it in a browser. (It should look something like this: https://discordapp.com/oauth2/authorize?client_id=123456789&scope=bot&permissions=536879120)
- Accept the bot to your server (Recommendation: Create a new server for privacy)
- Activate multi-device feature on WhatsApp by following their guide
- Scan the code QR code the bot sent to
#control-channel
You can host this on Heroku, but you may get banned. WhatsApp can recognize Heroku's IP addresses and may BAN you. However, if you still want to host this on Heroku, click the deploy on Heroku button , and follow steps 3 to 7, and paste the token to BOT_TOKEN.
This bot uses libraries that are already out there. So, all the kudos to whatsmeow and discordgo. I just integrated them.