A bot that sends new post from a specified subreddit into a channel that can be choosen in Discord.
You can either:
-
use the prebuilt docker-images on the Dockerhub or built it yourself with the Dockerfile in this repo and start the bot with the docker-compose.yml in this repository
-
just run the index.js with node directly
For both options you need a running mongodb instance and set the environment variables set either directly with for example docker-compose or in the .env file.
- TOKEN: this is the bot-token that you copy from the discord developer-portal
- CLIENTID: the id of the created bot, right-click on the bot in discord with developer mode enabled and then press "Copy ID"
- GUILDID: if you want your commands to only be valid on a specific server then copy the put the id here, right-click on the server in discord with developer mode enabled and then press "Copy ID", if not present then the commands will work everywhere
- DBCONNECT: the connection string for your mongodb instance
After that execute the deploy-commands.js script with node either directly in youre shell or inside of the docker-container with "docker exec -it mycontainer node /usr/src/app/src/deploy-commands.js".
- /subscribe subreddit: "" category: ""
subscribes to the specified subreddit either with the category hot or new in this channel
- /unsubscribe subreddit: ""
unsubscribes from the specified subreddit in this channel
- /list
lists all subscriptions in this channel
- a standard mongodb instance
- run deploy-commands.js once
- a registered discord application
Made by Knniff under the MIT-License.