Giter Site home page Giter Site logo

kobra-coding / whatsapptodiscord Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fklc/whatsapptodiscord

0.0 0.0 0.0 15.96 MB

WhatsAppToDiscord is a Discord bot that uses WhatsApp Web for messaging in Discord built on top of whatsmeow and discordgo

License: MIT License

Go 99.29% Batchfile 0.71%

whatsapptodiscord's Introduction

WhatsAppToDiscord

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.

Features

  • 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.


Commands

  • start <number with country code or name>: Starts a new conversation
  • list: Lists existing chats
  • list <chat name to search>: Finds chats that contain the given argument
  • addToWhitelist <channel name>: Adds specified conversation to the whitelist
  • removeFromWhitelist <channel name>: Removes specified conversation from the whitelist
  • listWhitelist: Lists all whitelisted conversations
  • enableDCPrefix: Starts adding your Discord username to messages sent to WhatsApp
  • disableDCPrefix: Stops adding your Discord username to messages sent to WhatsApp
  • enableWAPrefix: Starts adding sender's name to messages sent to Discord
  • disableWAPrefix: Stops adding sender's name to messages sent to Discord
  • ping: Sends "Pong! <Now - Time Message Sent>ms" back

Restarting automatically

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.


Setup

  1. Download the latest version from here
  2. Move the file you downloaded to a folder as the bot will create various files
  3. Go to Discord applications
  4. Click the blue button on the right upper corner with the text "New Application"
  5. Move to "Bot" section
  6. Click the blue button on the right with the text "Add a bot"
  7. Click the blue button on the right of icon of bot with the text "Copy"
  8. Run the bot
  9. Then paste it when it asks you to, and press enter
  10. 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)
  11. Accept the bot to your server (Recommendation: Create a new server for privacy)
  12. Activate multi-device feature on WhatsApp by following their guide
  13. 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 Deploy, and follow steps 3 to 7, and paste the token to BOT_TOKEN.


This is just a bot

This bot uses libraries that are already out there. So, all the kudos to whatsmeow and discordgo. I just integrated them.

whatsapptodiscord's People

Contributors

fklc avatar kobra-coding avatar rhutikcodes avatar

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.