Skip to content

ilyakam/dilbertbot

Repository files navigation

Dilbertbot

A Daily Dilbert Comic Strip Bot for Slack


Prerequisites

  1. brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. node
brew install node
  1. n
npm install n -g

Setup

  1. git clone git@github.com:ilyakam/dilbertbot.git
  2. cd dilbertbot
  3. n 6.*
  4. npm install

Workflow

  • To run the app locally

    npm run dev
  • To test

    npm run test
  • To lint

    npm run lint

Deploy

This bot can be deployed on different platforms. Simply follow the instructions below:

# Ensure you're inside the dilbertbot directory
npm install now -g
now deploy -e SLACK_WEBHOOK_URL=[your webhook URL]