1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 20:23:12 +00:00
Lumi/README.md

50 lines
2 KiB
Markdown
Raw Normal View History

2024-03-19 13:08:55 +00:00
# You can invite me with [this link](https://discord.com/oauth2/authorize?client_id=1038050427272429588&permissions=8&scope=bot). Thanks for using Racu!
2023-10-23 12:49:46 +00:00
2024-03-26 19:31:06 +00:00
![Racu art](art/racu_logo.png)
2024-02-28 15:38:45 +00:00
2024-03-19 13:08:55 +00:00
## Self host
2024-03-29 17:17:51 +00:00
**The next part of this README explains how to self-host Racu, this allows you to host your own version of my code and
create a personalized Discord bot.**
2024-02-28 15:38:45 +00:00
2024-03-19 13:08:55 +00:00
### 📲 Installation
2024-03-29 17:17:51 +00:00
Racu is containerized: its core, database, database admin platform and logger run on Docker without any extra
configuration.
However, you CAN run it locally without Docker by hosting MariaDB on your machine with the login credentials specified
in [.env](.env.template) and installing **Python 3.11** with the [required pip packages](requirements.txt). **Note: I
won't explain how to do this. Figure it out on your own.**
2024-02-28 15:38:45 +00:00
```sh
2024-03-15 23:18:13 +00:00
git clone https://gitlab.com/wlinator/racu && cd racu
2024-02-28 15:38:45 +00:00
```
2024-03-29 17:17:51 +00:00
Copy `.env.template` to `.env` and fill out the [variables](#env-keys).
2024-03-01 11:37:13 +00:00
2024-03-29 17:17:51 +00:00
**Optional:** copy `users.yml.example` to `users.yml` to properly configure Dozzle logs. Check the file for more
information.
2024-02-28 15:38:45 +00:00
```sh
docker compose up -d --build
```
## ⚙️ Environment variables
2024-03-29 17:17:51 +00:00
2024-02-28 15:38:45 +00:00
- `TOKEN`: your Discord Bot Token, you can get this [here](https://discord.com/developers/applications).
2024-04-05 10:11:59 +00:00
- `INSTANCE`: this can be anything, only set it as "MAIN" if you've configured Dropbox backups.
2024-02-28 15:38:45 +00:00
- `OWNER_ID`: the Discord user ID of the person who will act as owner of this bot.
2024-03-19 13:08:55 +00:00
- `XP_GAIN_PER_MESSAGE`: how much XP should be awarded to a user per message.
- `XP_GAIN_COOLDOWN`: XP earning cooldown time in seconds.
2024-03-29 17:17:51 +00:00
- The values with "DBX" can be ignored unless you plan to make database backups with Dropbox. In that case enter your
Dropbox API credentials.
2024-03-19 13:08:55 +00:00
2024-02-28 15:38:45 +00:00
- `MARIADB_USER`: the username for your MariaDB database.
- `MARIADB_PASSWORD`: the password for your database.
- `MARIADB_ROOT_PASSWORD`: the root password for your database. (can be ignored unless you have a specific use for it)
2024-03-26 19:31:48 +00:00
---
Some icons used in Racu are provided by [Icons8](https://icons8.com/).