Skip to content

Installation Guide

YoloWingPixie edited this page May 12, 2021 · 8 revisions

Prerequisites

  • 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

Creating Discord Webhook

  1. Select the settings gear for the channel you want LSO grades to go to.

  2. Select Integrations

  3. Click Create Webhook

  4. Name the webhook whatever you want and give it a picture if you'd like.

  5. Copy the Webhook URL and save it for the next step.

Installing LSO BOT

  1. 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.

  2. 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
  1. Open Powershell as an Administrator

  2. 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.
  3. Change the directory to the LsoBot folder, wherever you placed it. e.g. cd C:\Scripts\LsoBot

  4. Run .\LsoBot-Register.ps1

    • You should receive a response indicating that a Powershell scheduled job was created.
  5. Land on the carrier and each trap should result in a message to the Discord channel with the webhook.

  6. If you need to stop the bot from sending messages to Discord, run .\LsoBot-Deregister.ps1 from Powershell.

  7. To start LSO Bot again, simply run .\LsoBot-Register.ps1.

Clone this wiki locally