From 3faba571382532532f6daa570c9df39a5bda976b Mon Sep 17 00:00:00 2001 From: secret_online Date: Sun, 24 Jan 2016 09:17:35 +1300 Subject: Add config option for RCON delay --- config.json | 1 + index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index 48778d3..07e3895 100644 --- a/config.json +++ b/config.json @@ -9,5 +9,6 @@ "WEBHOOK": "/minecraft/hook", "REGEX_MATCH_CHAT_MC": "\\[Server thread/INFO\\]: <(.*)> (.*)", "REGEX_IGNORED_CHAT": "packets too frequently", + "RCON_RECONNECT_DELAY": 10, "DEBUG": false } \ No newline at end of file diff --git a/index.js b/index.js index fba3da4..7a288f8 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ client.on("auth", function() { client.disconnect(); setTimeout(function() { client.connect(); - }, 10000); + }, c.RCON_RECONNECT_DELAY * 1000); }); client.connect(); -- cgit 1.4.1
summary refs log tree commit diff
path: root/pdf (unfollow)
Commit message (Collapse)Author
2020-06-08Remove reference to FreeBSD-specific libedit hackJune McEnroe
Newer versions of libedit have sane tab-complete now without FreeBSD's hacks, and in fact the hack is gone in FreeBSD-CURRENT. I'm still a little confused why binding this weird function is necessary at all, but at least it exists everywhere, I guess.
2020-06-08Prefix mandoc with exec in about-filterJune McEnroe
2020-06-07Remove mktemp options from mkbuiltins, mktokensJune McEnroe
Why even?
2020-06-07Cast z_stream fields to size_tJune McEnroe
In the version of zlib in OpenBSD, these fields are of type off_t, which is signed (why?), rather than uLong.
2020-06-07Call static_assert by _Static_assertJune McEnroe
OpenBSD doesn't #define static_assert in assert.h and _Static_assert is its real name I guess so why not?
2020-06-07Add OpenBSD to install.shJune McEnroe
Straightforward.
2020-06-03Add The Song of AchillesJune McEnroe
2020-06-01Allow redirecting input in everJune McEnroe
2020-05-31Add %c conversion to c scriptJune McEnroe
2020-05-31Add c script to READMEJune McEnroe
2020-05-31Add c scriptJune McEnroe
2020-05-31Update mdoc source URLsJune McEnroe
2020-05-26Remove unfinished PSF fontsJune McEnroe