Permalink
Browse files

Revert "Add grub script"

This reverts commit 481b2ca.
  • Loading branch information...
1 parent 2b16f29 commit 38adcb6dd3b8311eb9abe4b06af0c062cc35e8d3 @carmstrong carmstrong committed Nov 24, 2012
Showing with 0 additions and 44 deletions.
  1. +0 −44 src/scripts/grub.coffee
View
@@ -1,44 +0,0 @@
-# Description:
-# Decides where your team should get their grub on
-#
-# Dependencies:
-# None
-#
-# Configuration:
-# None
-#
-# Commands:
-# grub add - Add a grubbery to the list
-# grub rm - Remove a grubbery from the list
-# grub ls - List all of the grubberies that have been added
-# grub time - Chooses a grubbery at random
-#
-# Notes:
-# None
-#
-# Author:
-# carmstrong
-
-module.exports = (robot) ->
- robot.brain.on 'loaded', =>
- robot.brain.data.grub ||= []
-
- robot.hear /grub add (.*)/i, (msg) ->
- grubhub = msg.match[1]
- if grubhub.length
- robot.brain.data.grub.push(grubhub)
- else
- msg.send "Provide a grubbery..."
-
- robot.hear /grub rm (.*)/i, (msg) ->
- grubhub = msg.match[1]
- if grubhub.length
- robot.brain.data.grub = robot.brain.data.grub.filter (x) -> x != grubhub
- else
- msg.send "Provide a grubbery..."
-
- robot.hear /grub ls/i, (msg) ->
- msg.send "Grubberies: #{ robot.brain.data.grub.join(", ") }"
-
- robot.hear /grub time/i, (msg) ->
- msg.send "We're grubbing at #{ msg.random robot.brain.data.grub } today"

0 comments on commit 38adcb6

Please sign in to comment.