Add readme and drone CI/CD
This commit is contained in:
parent
d6b67565e9
commit
10b0a4a49c
|
@ -18,5 +18,3 @@ steps:
|
|||
when:
|
||||
branch: main
|
||||
event: push
|
||||
|
||||
|
||||
|
|
39
README.md
39
README.md
|
@ -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 |
|
||||
|
|
Loading…
Reference in a new issue