Skip to content

Instantly share code, notes, and snippets.

@Arthraim
Created August 6, 2014 03:34
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 Arthraim/63d9c15f63b8c336836d to your computer and use it in GitHub Desktop.
Save Arthraim/63d9c15f63b8c336836d to your computer and use it in GitHub Desktop.
puzzle and dragon hubot script
# 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