mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 23:23:28 +01:00
Added hook for roundend to notify the discord bot that round has ended (TODO: add more information to that round, example: survivors, ghost, game mode)
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
/hook/startup/proc/discordNotify()
|
||||
if (config.use_discord_bot && config.discord_host && config.discord_port)
|
||||
world.Export("http://[config.discord_host]:[config.discord_port]/?command=startup&name=[station_name()]&connect=[config.server?"[config.server]":"[world.address]:[world.port]"]")
|
||||
return 1
|
||||
|
||||
/hook/roundend/proc/discordNotify()
|
||||
if (config.use_discord_bot && config.discord_host && config.discord_port)
|
||||
world.Export("http://[config.discord_host]:[config.discord_port]/?command=roundend")
|
||||
return 1
|
||||
Reference in New Issue
Block a user