-
Notifications
You must be signed in to change notification settings - Fork 3
1. Selfhosting Guide
Tien Dat Pham edited this page Mar 22, 2022
·
19 revisions
⚠️ 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, clickAdd bot
button at the right side and clickYes, do it!
.- (Optional) Change the bot profile in
Bot
tab - it won't affect theGeneral Information
tab.
- (Optional) Change the bot profile in
- Note the
Token
and store it somewhere else. - Choose
Message Content Intent
andServer Member Intent
.- (Optional) Uncheck
Public Bot
- that will make bot invite link useless.
- (Optional) Uncheck
⚠️ You might need to install PostgreSQL first
- Already covered in here: https://tableplus.com/blog/2018/10/how-to-start-stop-restart-postgresql-server.html
- Remember to open the port of PostgreSQL (5432 most of the time) on your remote server (if any)
- Already covered in here: https://github.com/freyacodes/Lavalink#server-configuration
- Remember to open the port of Lavalink (2333 most of the time) on your remote server (if any)
Rewriting.
-
git
: optional, more information in step 1, but having it is easier for your life. -
.NET SDK
: To run the program.
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
- 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
- Make sure you are still in the same directory with
Lilia.csproj
file. - Start the database server
- Start the Lavalink server
- Now we ofiicially run the bot:
dotnet run -c Release
- Should anything happens, refer to the Troubleshooting Guide:tm: