We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e76f8aa commit 13a4258Copy full SHA for 13a4258
2 files changed
server_chat/init.lua
@@ -214,10 +214,11 @@ end
214
-- Staff Channel
215
216
local ongoing = nil
217
+local host = core.settings:get("server_chat_discord_relay_host") or "127.0.0.1"
218
local function grab_staff_messages()
219
if not ongoing then
220
ongoing = http.fetch_async({
- url = "localhost:31337",
221
+ url = host .. ":31337",
222
timeout = 10,
223
method = "GET",
224
})
server_chat/settingtypes.txt
@@ -1,2 +1,3 @@
1
server_chat_webhook (Webhook to send staff messages to) string ""
2
server_chat_relay_from_discord (Accept !st messages sent from ctf-discord-bot) bool false
3
+server_chat_discord_relay_host (Host that ctf-discord-bot is at) string "127.0.0.1"
0 commit comments