Telegram bot that provides information about the elements of the periodic table.
cp compose.example.yaml compose.yaml
cp .env.example .env
# edit .env and set TELEGRAM_TOKEN=<your token>
docker compose pull && docker compose up -d
# or build from the current checkout instead of pulling:
docker compose up -d --buildObtain a bot token from @BotFather.
If the ghcr.io/cheminfo/periodic-bot package is private, authenticate on the host once before docker compose pull:
# Create a PAT at https://github.com/settings/tokens with the `read:packages` scope,
# then set GHCR_TOKEN in .env (see .env.example).
set -a && . ./.env && set +a
echo "$GHCR_TOKEN" | docker login ghcr.io -u <your-github-username> --password-stdinThe credential is stored by Docker and reused on subsequent pulls.
npm install
cp .env.example .env # set TELEGRAM_TOKEN
npm run dev # node --watchRun the checks:
npm test