A boilerplate project for running Discord and Telegram bots together in a single Ruby application. Perfect starting point if you want a clean structure, environment setup, and testing out of the box.
- Ruby 3.0^
gem install sylvia
then
sylvia bot new_app
├── app/ # Bot logic (Discord, Telegram, controllers, model?) ├── bin/ # Executable entry point scripts ├── config/ # Configuration, including example .env ├── spec/ # RSpec test suite ├── Gemfile # Project dependencies ├── Rakefile # Build/test/automation tasks ├── .rubocop.yml # Code linting rules
bundle install
Edit config/.env and set your credentials:
TOKEN_DISCORD, CLIENT_ID_DISCORD
TOKEN_TELEGRAM
SERVER_ID_DISCORD (optional, for Discord dev testing)
./bin/START
rake discord
or
rake telegram
rake test
MIT License
Created by whdzera
Feel free to fork, improve, or contribute via pull requests!