Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

added spaceyme.coffee - random pictures of Kevin Spacey #1136

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/scripts/spaceyme.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Description:
# Random sized picture of Kevin Spacey on demand
#
# Commands
# spacey me

sizes = [100...500]

module.exports = (robot) ->
robot.respond /spacey me/i, (msg) ->
height = msg.random sizes
width = msg.random sizes
msg.send "http://kevinspacer.com/#{width}/#{height}#.png"