Created
March 15, 2018 05:05
-
-
Save aflansburg/f039e170b345be2ce8526e4efccbaa19 to your computer and use it in GitHub Desktop.
Hubot script to parrot what you desire in the specified room
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: | |
# RCBOT Parrots what you said to the specified room | |
# | |
# Dependencies: | |
# None | |
# | |
# Commands: | |
# rcbot say in #devops "Something blah blah blah" | |
# | |
# Author: | |
# abram flansburg | |
module.exports = (robot) -> | |
robot.respond /say in (?:#(.*))? "(.*?)"/i, (msg) -> | |
target_room = msg.match[1] | |
room_msg = msg.match[2] | |
robot.messageRoom '#' + target_room, room_msg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment