Table of Contents

Using Custom Libraries and NuGet Packages

GrindFest's bot system supports using any .NET library in your bot scripts. The compiler reads your project file (.csproj) to resolve all dependencies. git

Adding Custom Libraries

Open the ``C:\Users<YourUsername>\AppData\LocalLow\GrindFest\GrindFest\Scripts\Scripts.csproj` in a text editor and add a reference to your DLL:

<ItemGroup>
  <Reference Include="MyCustomLibrary">
    <HintPath>C:\Path\To\MyCustomLibrary.dll</HintPath>
  </Reference>
</ItemGroup>

3. Use in Your Bot

using MyCustomLibrary;

class CustomLibraryHero : AutomaticHero
{
    void Start()
    {
        var helper = new MyCustomHelper();
        Say($"Using custom library: {helper.GetVersion()}");
    }
}