Dockerfile available for running, please check Dockerfile and prizebot.env
To run this bot by yourself please provide:
- The bot token with
BOT_TOKENenvironment variable - Random.org api key with
RANDOM_ORG_API_KEYvariable from api.random.org
You can also specify LOG_CHAT_ID if you want to send crashes to some chat.
First, provide this environment variables:
DATABASE_URLDATABASE_USERDATABASE_PASSWORDDATABASE_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
Created automatically and have auto schema migrations for releases.
There are migrations only for releases because official instance deploys on release only. So if you trying to deploy bot from last commit, incomplete migration may be applied (with name
21-22for example) and if there will be added some other changes in21-22migration before release, program won't apply them since the21-22migration was already applied. This has been done for decreasing migrations count.