Skip to content

Files

Latest commit

4411bf9 · Jun 20, 2023

History

History
73 lines (43 loc) · 1.69 KB

README.md

File metadata and controls

73 lines (43 loc) · 1.69 KB

Discord Bot

Config

By default the program with look for the config file config-discord.json at the root of the exe location.

If one doesn't exist one will be created.

It can be a good idea to run the exe first to get a template of the config file.

Additionally you can use -config flag to any location on disk.

{
    "buildServerUrl": "http://127.0.0.1:8080",
    "token": "string",
    "guildId": 0,
    "commandName": "start-build",
    "authorisedRoles": [
        "admin",
        "Dev"
    ]
}

Slash Commands

For a general overview of Discord slash commands see:

Guild Commands

/docs

Opens this documents page

/start-build (orcommandName)

Starts a build on the master server at url buildServerUrl.

I most cases you can simply choose the workspace you wish to build and thats it.

Additionally you can send a string of arguments to the build server

Notable args:

-branch: Builds workspace from non-default branch

-setlive: Deploys to non-default Steam channel

-clanforge: Deploys server to non-default profile

Example:

-branch main/dev-branch -setlive beta -clanforge devb Builds from specific branch and deploys to non-default server environment

For more arguments see Builds README

/refresh-workspaces

Refreshes the workspaces on the build server. This is so if you add a new workspace you don't need to restart server application.

/server-update-clanforge

/server-update-ugs (coming soon)

/production