Description
Telegram bots building tool.
Bionic alternatives and similar gems
Based on the "Frameworks" category.
Alternatively, view Bionic alternatives based on common mentions on social networks and blogs.
-
minitest
minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking. -
Spork
A DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state. -
Konacha
Test your Rails application's JavaScript with the mocha test framework and chai assertion library -
RR
RR is a test double framework that features a rich selection of double techniques and a terse syntax. ⛺ -
RSpecTracer
RSpec Tracer is a specs dependency analyzer, flaky tests detector, tests accelerator, and coverage reporter tool for RSpec. It maintains a list of files for each test, enabling itself to skip tests in the subsequent runs if none of the dependent files are changed. It uses Ruby's built-in coverage library to keep track of the coverage for each test.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Bionic or a related project?
Popular Comparisons
README
Bionic
Telegram bots building tool.
The library provides next features:
- Easy configuration;
- Built-in message parser into command and arguments;
- Internationalization and localization using i18n gem;
- Handlers for every command;
- Database connection.
Installation
Install Bionic at the command prompt if you haven't yet:
$ gem install bionic
At the command prompt, create a new Bionic application:
$ bionic new app
where app
is the application name.
Change directory to
app
and run:$ cd myapp $ bundle install
Paste your your bot token and username to
.env
.Start the application with:
$ bionic start
Usage
For handling new command you need to create new handler called like a command.
For example, if command sent from a user is /bye
, you need to create handler called Bye
under handlers
directory.
This handler should be inherited from Bionic::Handler
and override answer
method, which is a message that will be sent back.
module Handlers
class Bye < Bionic::Handler
private
def answer
'Bye!'
end
end
end
All text after base part of command will be split with ,
and passed to a handler as an array called args
.
If there is no necessary handler you will see a corresponding message in logs.
Project structure
.
├── app
│ ├── handlers # Handlers directory.
| | └── .
│ ├── models # Activerecord models directory.
| | └── .
│ └── services # Services directory.
| └── .
├── bin
| └── run # Run script.
├── config
│ ├── locales # I18n locales directory.
| | └── .
| ├── application.rb # Application configuration.
| ├── boot.rb # Gems load.
| └── database.yml # Database comfiguration.
├── db
| └── migrate # Database migrations.
| └── .
├── log # Logs
| └── .
├── .env # Dotenv environment variables.
├── .standalone_migrations # Migrations configuration.
├── Gemfile # Gems dependencies.
├── Rakefile # Rake tasks.
└── README.md
Additional info
More information about bot wrapper you can find here.
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
If you have some proposals how to improve this boilerplate feel free to open issues and send pull requests!
- Fork it
- 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 new Pull Request
License
Bionic is available as open source under the terms of the MIT License.
*Note that all licence references and agreements mentioned in the Bionic README section above
are relevant to that project's source code only.