Skip to content

1. Selfhosting Guide

Tien Dat Pham edited this page Mar 22, 2022 · 19 revisions

READ THIS FIRST

⚠️ Make sure you have a BOT because I will not provide supports for the case that you used this ON YOURSELF.

More information: https://discord.com/developers/docs/topics/oauth2#bot-vs-user-accounts

  • Go here and remember to login.
  • Click the New Application button on the top right, give it a name.
  • Go to the Bot tab, click Add bot button at the right side and click Yes, do it!.
    • (Optional) Change the bot profile in Bot tab - it won't affect the General Information tab.
  • Note the Token and store it somewhere else.
  • Choose Message Content Intent and Server Member Intent.
    • (Optional) Uncheck Public Bot - that will make bot invite link useless.

0. Before we get our hands dirty

PostgreSQL

⚠️ You might need to install PostgreSQL first

Lavalink

1. From pre-compiled code (most stable)

Rewriting.

2. From source code (most cutting-edge)

Step 0: Prerequisites

  • git: optional, more information in step 1, but having it is easier for your life.
  • .NET SDK: To run the program.

Step 1: Get the source code

You can either use git to clone the source code (or download the source code manually)

git clone https://github.com/Swyreee/Lilia.git

If you want to update the code, go one directory then run with git or update manually by downloading the .zip file then override the files: (both requires you to shutdown the running instance first)

git pull

Step 2: Configurations

  • After that, create config.json file then follow the Chapter 2
/Lilia
- /Lilia
    - anything else
    - Lilia.csproj
    - config.json // <-- it should be here
- anything else
- Lilia.sln

Step 3: Run the bot

dotnet run -c Release