Skip to content

Instantly share code, notes, and snippets.

@aflansburg
Last active March 22, 2018 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aflansburg/8db7bb46a3e7de5601ab519d4c5aaa85 to your computer and use it in GitHub Desktop.
Save aflansburg/8db7bb46a3e7de5601ab519d4c5aaa85 to your computer and use it in GitHub Desktop.
Bible Verse Quoting for Hubot - scriptureme
# Description:
# Hubot returns scripture using bibleverses package
#
# Dependencies:
# bibleverses
#
# Configuration:
# `npm install bibleverses --save`
#
# Commands:
# rcbot scripture me ```John 3:16```
#
# Author:
# aflansburg
bibleverses = require 'bibleverses'
module.exports = (robot) ->
robot.hear /scripture me ```(.*?)```/i, (msg) ->
passage = msg.match[1]
bibleverses.retrievePassage(passage).then (response) ->
msg.send response
@aflansburg
Copy link
Author

aflansburg commented Mar 16, 2018

The npm package is here- bibleverses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment