mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-01 21:21:59 +00:00
18 lines
775 B
Plaintext
18 lines
775 B
Plaintext
/proc/send2discord(command, channel, message)
|
|
if (config.use_discord_bot && config.discord_host)
|
|
world.Export("http://[config.discord_host]/?command=[command]&channel=[channel]&message=[paranoid_sanitize(message)]")
|
|
|
|
/proc/send2maindiscord(message)
|
|
if(config.discord_channel_main)
|
|
send2discord("message", config.discord_channel_main, message)
|
|
return
|
|
|
|
/proc/send2admindiscord(message)
|
|
if(config.discord_channel_admin)
|
|
send2discord("message", config.discord_channel_admin, message)
|
|
return
|
|
|
|
/hook/startup/proc/discordNotify()
|
|
if(config.discord_channel_main)
|
|
send2discord("startup", config.discord_channel_main, "Server starting up on [station_name()]. Connect to: [config.server? "[config.server]" : "[world.address]:[world.port]"]")
|
|
return 1 |