Created
August 6, 2014 03:34
-
-
Save Arthraim/63d9c15f63b8c336836d to your computer and use it in GitHub Desktop.
puzzle and dragon hubot script
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: | |
# Get pnd monsters information by number | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: | |
# hubot pnd (me) <number> | |
# | |
# Author: | |
# Arthraim | |
module.exports = (robot) -> | |
robot.respond /p[na]d( me)? (.*)/i, (msg) -> | |
msg.send "[MONSTER INFO] http://www.puzzledragonx.com/en/monster.asp?n=#{ msg.match[2] }" | |
msg.send "http://www.puzzledragonx.com/en/img/monster/MONS_#{ msg.match[2] }.jpg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment