This is a boilerplate Telegram bot for the Tourmaline Telegram bot framework.
Features:
- Internationalization support using TechMagister/i18n
- Background job processing using robacarp/mosquito
- Database support using PostgreSQL, amberframework/micrate, and anykeyh/clear
- Automatic restarts during development using samueleaton/sentry
- Dockerfile for easy deployments
-
Clone the repo and cd into the created directory
git clone https://github.com/watzon/tourmaline-boilerplate.git cd tourmaline-boilerplate
-
Install required shards
shards install
-
Create and edit envorionment file
cp .env.example .env
-
Setup and migrate the database (be sure you have configured the
DATABASE_URI
environment variable)./micrate up
-
Run the bot (using sentry to watch for changes)
crystal run ./src/sentry.cr
- Fork it (https://github.com/your-github-user/telegram_bot/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Chris Watson - creator and maintainer