Skip to content

RunScripts

Jason Spafford edited this page Jul 18, 2018 · 1 revision

This plugin can run an arbitrary script file. If you add a Discord webhook for it, it will also send the STDOUT of that script to discord. If the command you specify returns a nonzero exit code, which indicates failure, the error will ALWAYS be sent to discord if it's enabled.

Configuration

Name Example Description
enabled true Set to true or false to prevent this plugin from running
command test.bat The path to the command, relative to serverthrall.exe or an absolute path
command_timeout 300 The number of seconds before timing out the command. This is optional but you should absolutely specify this, or else if the command you run hangs it'll cause your server not to come back up.

Example Config

[RunScripts]
enabled = true
command = test.bat
command_timeout = 300

[Discord]
enabled = true
RunScripts = https://discordapp.com/api/webhooks/...