Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion server_chat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,11 @@ end
-- Staff Channel

local ongoing = nil
local host = core.settings:get("server_chat_discord_relay_host") or "127.0.0.1"
local function grab_staff_messages()
if not ongoing then
ongoing = http.fetch_async({
url = "localhost:31337",
url = host .. ":31337",
timeout = 10,
method = "GET",
})
Expand Down
1 change: 1 addition & 0 deletions server_chat/settingtypes.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
server_chat_webhook (Webhook to send staff messages to) string ""
server_chat_relay_from_discord (Accept !st messages sent from ctf-discord-bot) bool false
server_chat_discord_relay_host (Host that ctf-discord-bot is at) string "127.0.0.1"