Sign inSign up

knniff/redditbot

By knniff

•Updated almost 4 years ago

Image
0

984

knniff/redditbot repository overview

⁠reddit-bot

A bot that sends new post from a specified subreddit into a channel that can be choosen in Discord.

⁠Installation and Usage

⁠Installation
⁠The needed environment variables are
  • 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 directly inside of the docker-container with "docker exec -it mycontainer node /usr/src/app/src/deploy-commands.js".

⁠Usage
  • /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

⁠Requirements

  • a standard mongodb instance
  • run deploy-commands.js once
  • a registered discord application

Made by Knniff⁠ under the MIT-License.

Tag summary

Content type

Image

Digest

sha256:6991edbf2…

Size

365.8 MB

Last updated

almost 4 years ago

docker pull knniff/redditbot