Automate discord messages sending without the use of a discord bot. It uses the puppeteer
and the CDP
protocol from chromium.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
You need to have chrome/chromium browser installed. Works on Windows/Linux/MacOS You will need nodejs and npm installed.
NOTE that if an instance of chrome is already running on your system, remote debugging port won't work
I advise you to create a hidden folder .discord_project
so it can be used to store your user data.
foo@foobar:~$ mkdir ~/.discord_project
foo@foobar:~$ chromium --remote-debugging-port=1337 --user-data-dir=~/.discord_project
now create a .env
file using the example .env.example
foo@foobar:~$ cp .env.example .env
Now edit the .env file with your discord credentials
and the set the SERVER_NAME
variable.
DISCORD_USER="your_username"
DISCORD_PASSWORD="your_discord_password"
SERVER_NAME="ShellmatesTeam2020"
Install dependencies using npm
npm install
run the script and let it do the work.
node index.js
- CHERIEF Yassine - Initial work
This project is licensed under the MIT License - see the LICENSE.md file for details
- CHERIEF Yassine