slack-modlog

slack-modlog broadcasts important modlog events from reddit to slack

Usage no npm install needed!

<script type="module">
  import slackModlog from 'https://cdn.skypack.dev/slack-modlog';
</script>

README

Overview

slack-modlog is a service that broadcasts important events from a subreddit's moderator log to a Slack webhook.

Installation

npm install -g slack-modlog

Configuration

  1. Make a copy of config.json.example and call it config.json
  2. Use reddit-oauth-helper to create a new reddit app and obtain a client_id, client_secret and refresh_token
  3. Put client_id, client_secret and refresh_token in config.json along with the subreddit you'd like the service to monitor
  4. Create an incoming webhook in Slack
  5. Put the url for your slack_webhook_url into config.json

Running

slack-modlog