Node.js app that runs a Discord.js bot
Maintained by Divide#2000 on discord If you spot an issue, bug, or a feature you want added then you can help by adding a new issue in the issues tab Contributions are greatly appreciated. as this is very early in development
- ???
- Members list
- Multiple channel support
- Visit https://discordapp.com/developers/applications/
- Press "New Application" and name it to whatever (e.g. "Swag Message Assistant")
- Switch to the bot tab and press "Add Bot"
- Press "Copy" under the blue text that says "Click to Reveal Token"
- Download the discord-proxy repository and extract to a folder
- Open up "config.json" with a text editor and in the token field, select the text "insert bot token" and paste your copied token then save the file
- Open a terminal of any sort (CMD or Terminal) and navigate to your folder with app.js in it using the "cd" command
- Make sure "node.js" and "npm" are both installed on your platform
- Run "npm install"
- Open up the "config.json" file once more and in Discord go in settings and under appearance you will find at the bottom "Developer Mode", make sure that is toggled on and if not toggle it. Go to the server you desire to test on and right click any channel and press "Copy ID" and select in the "config.json" file the channel field and replace the big numbers with your clipboard by pasting it into there and save the file
- In the discord developer website navigate to your bot and in the "general information" tab select "Copy" under the text "CLIENT ID" and visit https://breadsticks.ga/chatparser/ then paste the client ID into the box that says "CLIENT ID" then press "Generate" and click on the link and select a server to invite it to.
- Go to your channel you got your channel id from and press the gears icon on it and go to the Webhooks tab. Click on create webhook and fill in some details and click on "Copy" after the webhook url box. In the config.json file paste this link in the field that says "Insert webhook id 1 here"
- Repeat the previous step until the fields that say "Insert webhook id # here" are all filled out and are set to general which would be about 3 times.
- Save all changes to config.json.
- In a terminal type in "node app.js" and visit http://localhost:8080/ in your browser
This node app fetches a set of messages in a channel and sends it to the clients to read them and the clients can send a message to the server that will be filtered then the server will fire a webhook with the data to send a message.