mirror of
https://github.com/kennethreitz-archive/changebot.git
synced 2026-06-05 23:40:18 +00:00
Added the 'commit' command for epic whatthecommit.com support
This commit is contained in:
committed by
Chris Wanstrath
parent
e8630807e9
commit
6733bcd2d9
+8
-1
@@ -165,9 +165,16 @@ hear /adventure me/, (message) ->
|
||||
"Want some Rye? Course ya do!"
|
||||
]
|
||||
txt = txts[ Math.floor(Math.random()*txts.length) ]
|
||||
|
||||
|
||||
message.say txt
|
||||
|
||||
desc 'commit'
|
||||
hear /commit/, (message) ->
|
||||
url = "http://whatthecommit.com/index.txt"
|
||||
|
||||
get url, (body) ->
|
||||
message.say body
|
||||
|
||||
desc 'weather in PLACE'
|
||||
hear /weather in (.+)/i, (message) ->
|
||||
place = message.match[1]
|
||||
|
||||
Reference in New Issue
Block a user