Last active
March 22, 2018 20:31
-
-
Save aflansburg/8db7bb46a3e7de5601ab519d4c5aaa85 to your computer and use it in GitHub Desktop.
Bible Verse Quoting for Hubot - scriptureme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The npm package is here-
bibleverses