Added Discord Bot functionality

This commit is contained in:
void*
2019-01-03 18:11:15 +01:00
parent 460e9b3119
commit a179ffd83d
4 changed files with 29 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
/hook/startup/proc/discordNotify()
world << "trigger discordNotify()"
if (config.use_discord_bot && config.discord_host && config.discord_port)
world << "http://[config.discord_host]:[config.discord_port]/?command=startup&name=[station_name()]&connect=[world.address]:[world.port]"
world.Export("http://[config.discord_host]:[config.discord_port]/?command=startup&name=[station_name()]&connect=[world.address]:[world.port]")
return 1