-
Notifications
You must be signed in to change notification settings - Fork 7
Installation Guide
- Powershell 5.1 - This is installed by default on Server 2016-2019 and Windows 10.
- Manage Webhooks rights on the Discord server to create the webhook
-
Select the settings gear for the channel you want LSO grades to go to.
-
Select Integrations
-
Click Create Webhook
-
Name the webhook whatever you want and give it a picture if you'd like.
-
Copy the Webhook URL and save it for the next step.
-
Copy the LsoBot folder wherever you downloaded it from Github to your DCS server. Place it in an appropriate folder. Recommend: C:\Scripts or C:\LsoBot or something similar in the root of C:\ or in a common scripts folder.
-
Open LsoBot-Config.psd1 and update the following variables. You can also edit options. View the file for option settings.
webHookUrl = The URL for your Discord webhook
logpath = The location of your dcs.log. # Defaults to $env:USERPROFILE\Saved Games\DCS.openbeta_server\Logs\dcs.log-
Open Powershell as an Administrator
-
Run
Set-ExecutionPolicy -ExecutionPolicy Bypass- By default Windows 10 machines do not all scripts to be run at all, this command allows the current Powershell window to run unsigned Powershell scripts. You can also re-save the scripts yourself on Windows Server 2016 and 2019 machines and keep the default ExecutionPolicy, as self-made scripts do not need to be signed.
-
Change the directory to the LsoBot folder, wherever you placed it. e.g.
cd C:\Scripts\LsoBot -
Run
.\LsoBot-Register.ps1- You should receive a response indicating that a Powershell scheduled job was created.
-
Land on the carrier and each trap should result in a message to the Discord channel with the webhook.
-
If you need to stop the bot from sending messages to Discord, run
.\LsoBot-Deregister.ps1from Powershell. -
To start LSO Bot again, simply run
.\LsoBot-Register.ps1.