This project is a Discord bot in Node JS. His purpose is to connect to a discord account using puppeteer and post messages at regular intervals in discord channels.
First you need to download the repository and put all the files in a folder. Then open a console in this folder and install the following modules :
- Install the modules with
npm i
- Private data
- email, password and token can be changed in the config.js file
- channels link to go and write message can be added in "variables.json" in the storage folder
Note : In the array "channels" in the variables.json file, put the links as strings in it, example :
"channels": [
"https://link1.com",
"https://link2.com",
"https://link3.com"]
Start the bot by doing node .
in a terminal in the folder.
- Commands :
!automsg on
-> starts chromium and sends messages!automsg off
-> stops chromium, an error will show in console but wont affect the program!msg set {message}
-> sets a message or change the previous one!msg p
-> the bot will send the message setted with '!msg set' in the channel
- Clear dated logs
- Logs saving in separate files
- Code is documented if you need to find a precise piece in the code
Thanks to Firokat for help and ideas on this project