This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

added beerme.coffee, to display a random picture of a beer

  • Loading branch information...
houndbee committed Jun 21, 2012
1 parent 728903a commit e26f0709e9948cfec11f06d1f20754155029168c
Showing with 28 additions and 0 deletions.
  1. +28 −0 src/scripts/beerme.coffee
View
@@ -0,0 +1,28 @@
+# Beer Me
+#
+# beer me - Grab me a beer
+#
+
+beers = [
+ "http://organicxbenefits.com/wp-content/uploads/2011/11/organic-beer-health-benefits.jpg",
+ "http://www.beer100.com/images/beermug.jpg",
+ "http://www.joyandfood.com/wp-content/uploads/2012/05/Beer-beer.jpg",
+ "http://www.bristolvantage.com/wp-content/uploads/2012/02/beer-calories1.jpg",
+ "http://cdn.biruwananbai.com/wp-content/uploads/2012/04/more_beer-01.jpg",
+ "http://blog.collegebars.net/uploads/10-beers-you-must-drink-this-summer/10-beers-you-must-drink-this-summer-sam-adams-summer-ale.jpg"
+ "http://media.treehugger.com/assets/images/2011/10/save-the-beers.jpg",
+ "http://poemsforkush.files.wordpress.com/2012/04/beer.jpg",
+ "http://www.wirtzbeveragegroup.com/wirtzbeveragenevada/wp-content/uploads/2010/06/Beer.jpg",
+ "http://www.walyou.com/blog/wp-content/uploads/2010/06/giant-beer-glass-fathers-day-beer-gadgets-2010.jpg",
+ "http://images.free-extras.com/pics/f/free_beer-911.jpg",
+ "http://images.seroundtable.com/android-beer-dispenser-1335181876.jpg",
+ "http://www.mediabistro.com/fishbowlDC/files/original/beer-will-change-the-world.jpg",
+ "http://dribbble.s3.amazonaws.com/users/79978/screenshots/594281/attachments/47191/more.png",
+ "http://www.gqindia.com/sites/default/files/imagecache/article-inner-image-341-354/article/slideshow/1289/beer.JPG",
+ "http://www.gqindia.com/sites/default/files/imagecache/article-inner-image-341-354/article/slideshow/1289/beer2.jpg",
+ "http://www.gqindia.com/sites/default/files/imagecache/article-inner-image-341-354/article/slideshow/1289/Beer3.jpg"
+]
+
+module.exports = (robot) ->
+ robot.hear /.*(beer me).*/i, (msg) ->
+ msg.send msg.random beers

0 comments on commit e26f070

Please sign in to comment.