Add readme and drone CI/CD
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Dryusdan 2023-08-07 17:26:17 +02:00
parent d6b67565e9
commit 10b0a4a49c
Signed by: Dryusdan
GPG key ID: EC1438DDE24E27D7
2 changed files with 38 additions and 3 deletions

View file

@ -18,5 +18,3 @@ steps:
when:
branch: main
event: push

View file

@ -1,3 +1,40 @@
# discord-biketag
A manual bot for biketag
A manual bot for biketag
## Install it
Clone this repository.
Run `db.sql` in PostgreSQL.
You can run this project in docker or in standalone.
### Standalone mode :
Create a file called config.yml in `src/` with this info :
```yaml
db:
host: 127.0.0.1
port: 5432
dbname: biketag
user: biketag
password:
discord:
token:
app_id:
guild_id:
```
or source environment variable like docker mode
### Docker mode
| Environment | Value |
|-------------|-------|
| DB_HOST | Your database host |
| DB_PORT | Your database port |
| DB_NAME | Your database name |
| DB_USER | Your database username |
| DB_PASS | Your database password |
| DISCORD_TOKEN | Your Discord bot token |
| DISCORD_APP_ID | Your Discord Application ID |
| DISCORD_GUILD_ID | Your guild ID |