Skip to content

Instantly share code, notes, and snippets.

@IQAndreas
Created December 16, 2014 00:57
Show Gist options
  • Save IQAndreas/971660facb4d86c622e7 to your computer and use it in GitHub Desktop.
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
// 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