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

Commit 0125946

Browse files
author
Tom Bell
committed
Merge pull request #880 from BM5k/add-keep-alive-config
add config variable for keep alive frequency
2 parents a95d8d4 + d483cb4 commit 0125946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/keep-alive.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# None
77
#
88
# Configuration:
9-
# None
9+
# HUBOT_KEEP_ALIVE_FREQUENCY
1010
#
1111
# Commands:
1212
# hubot keep `http://ninjas-20.herokuapp.com` alive - Add inputted url to the collection of urls set to be pinged
@@ -19,7 +19,7 @@
1919
HTTP = require "http"
2020
URL = require "url"
2121

22-
frequency = 60000
22+
frequency = process.env.HUBOT_KEEP_ALIVE_FREQUENCY || 60000
2323

2424
ping = (url) ->
2525
parsedUrl = URL.parse(url)

0 commit comments

Comments
 (0)