Created
December 16, 2014 00:57
-
-
Save IQAndreas/971660facb4d86c622e7 to your computer and use it in GitHub Desktop.
Hubot script which yells at users who try to treat [`ssh-chat`](https://github.com/shazow/ssh-chat) as if it were a shell
This file contains 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
// Yells at users for thinking this is an SSH shell | |
// Responds to the following commands (case sensitive, obviously): | |
// ls | |
// rm | |
// cat | |
module.exports = (robot) -> | |
robot.respond /([^:]+): (ls|rm|cat)/, (msg) -> | |
user = msg.match[1] | |
msg.send("Damn it, #{user}. This is a chat room, not a shell!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment