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:
void*
2019-01-03 23:31:54 +01:00
parent 7e32415b4b
commit 4ad407e9b9
+5
View File
@@ -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