-
Notifications
You must be signed in to change notification settings - Fork 14
Running Tutorial
Alex Sokol edited this page May 3, 2021
·
6 revisions
Dockerfile available for running, please check Dockerfile and prizebot.env
To run this bot by yourself provide the bot token with BOT_TOKEN
environment variable.
You can also specify LOG_CHAT_ID
if you want to send crashes to some chat.
Since 2.0 version, there is also RANDOM_ORG_API_KEY
variable required from api.random.org
First, provide this environment variables:
DATABASE_URL
DATABASE_USER
DATABASE_PASSWORD
-
DATABASE_DRIVER
- driver class name (optional, by default 'Exposed' will try to extract it from url)
Do not forget to include the driver dependency via gradle, Postgres included by default
It will be created automatically on first start, but in case it will be changed during releases you have to update schema manually. Note that there are plans for DB migrations #46 later
[Schema omitted because there are too many tables, so migrations now has more priority]