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.
8.9 9.9 L1 Bionic VS CucumberA monorepo of common components - building blocks for implementing Cucumber in various languages.
8.9 6.8 L5 Bionic VS shoulda-matchersSimple one-liner tests for common Rails functionality
8.5 3.8 L2 Bionic VS minitestminitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking.
6.9 0.0 L5 Bionic VS SporkA DRb server for testing frameworks (RSpec / Cucumber currently) that forks before each run to ensure a clean testing state.
6.3 8.4 L5 Bionic VS ArubaTest command-line applications with Cucumber-Ruby, RSpec or Minitest.
3.4 7.5 L4 Bionic VS RRRR is a test double framework that features a rich selection of double techniques and a terse syntax. ⛺
2.0 7.9 Bionic VS RSpecTracerRSpec 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.
* 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?
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.
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
app is the application name.
Change directory to
$ cd myapp $ bundle install
Paste your your bot token and username to
Start the application with:
$ bionic start
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
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
If there is no necessary handler you will see a corresponding message in logs.
. ├── 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
More information about bot wrapper you can find here.
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.
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
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.