rubotnik
"Bot-end" Ruby framework to quickly build and launch a Facebook Messenger chatbot
File Explorer
- console
- setup
- button_template.png
- carousel.png
- open_graph.png
- quick_replies.PNG
- rubotnik
- autoloader.rb
- cli.rb
- commands.rb
- generator.rb
- helpers.rb
- message_dispatch.rb
- postback_dispatch.rb
- user.rb
- user_store.rb
- version.rb
- has_buttons.rb
- base_ui_element.rb
- fb_button_template.rb
- fb_carousel.rb
- fb_open_graph_template.rb
- image_attachment.rb
- quick_replies.rb
- rubotnik.rb
- message.rb
- postback.rb
- user.rb
- helpers_spec.rb
- message_dispatch_spec.rb
- postback_dispatch_spec.rb
- user_spec.rb
- user_store_spec.rb
- base_ui_element_spec.rb
- fb_button_template_spec.rb
- fb_carousel_spec.rb
- fb_open_graph_template_spec.rb
- image_attachment_spec.rb
- quick_replies_spec.rb
- rubotnik_spec.rb
- spec_helper.rb
- .env
- .gitignore
- bot.rb
- commands.rb
- config.ru
- Gemfile
- location.rb
- Procfile
- profile.rb
- puma.rb
- ui_examples.rb
- .gitignore
- .rspec
- .travis.yml
- Gemfile
- LICENSE.txt
- Rakefile
- README.md
- rubotnik.gemspec
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
bind
View Details ▼
bind
Bash builtin to manage bash hotkeys and variables.
bind {{-p|-P}}
List all bound commands and their hotkeys:
bind -q {{command}}
Query a command for its hotkey:
bind -x '"{{key_sequence}}":{{command}}'
Bind a key:
bundle
View Details ▼
bundle
Dependency manager for the Ruby programming language.
bundle install
Install all gems defined in the `Gemfile` expected in the working directory:
bundle exec {{command}} {{arguments}}
Execute a command in the context of the current bundle:
bundle update
Update all gems by the rules defined in the `Gemfile` and regenerate `Gemfile.lock`:
gem
View Details ▼
gem
A package manager for the Ruby programming language.
gem search {{regex}} {{[-a|--all]}}
Search for remote gem(s) and show all available versions:
gem install {{gem_name}}
Install the latest version of a gem:
gem install {{gem_name}} {{[-v|--version]}} {{1.0.0}}
Install a specific version of a gem:
git add
View Details ▼
git add
Stage changed files for a commit.
git add {{path/to/file}}
Stage a file for a commit:
git add {{[-A|--all]}}
Add all files (tracked and untracked):
git add .
Add all files recursively starting from the current folder:
git init
View Details ▼
git init
Initialize a new local Git repository.
git init
Initialize a new local repository:
git init {{[-b|--initial-branch]}} {{branch_name}}
Initialize a repository with the specified name for the initial branch:
git init --object-format sha256
Initialize a repository using SHA256 for object hashes (requires Git version 2.29+):
git push
View Details ▼
git push
Push commits to a remote repository.
git push
Send local changes in the current branch to its default remote counterpart:
git push {{remote_name}} {{local_branch}}
Send changes from a specific local branch to its remote counterpart:
git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}
Send changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one:
heroku
View Details ▼
heroku
Create and manage Heroku apps.
heroku login
Log in to your Heroku account:
heroku create
Create a Heroku app:
heroku logs --app {{app_name}}
Show logs for an app:
ngrok
View Details ▼
ngrok
Reverse proxy that creates a secure tunnel from a public endpoint to a locally running web service.
ngrok http {{80}}
Expose a local HTTP service on a given port:
ngrok http {{example.com}}:{{80}}
Expose a local HTTP service on a specific host:
ngrok http https://localhost
Expose a local HTTPS server:
rake
View Details ▼
rake
A Make-like program for Ruby.
Tasks for `rake` are specified in a Rakefile.
rake
Run the `default` Rakefile task:
rake {{task}}
Run a specific task:
rake --jobs {{n}}
Execute `n` jobs at a time in parallel (number of CPU cores + 4 by default):
say
View Details ▼
say
Convert text to speech.
say "{{I like to ride my bike.}}"
Say a phrase aloud:
say --input-file {{filename.txt}}
Read a file aloud:
say --voice {{voice}} --rate {{words_per_minute}} "{{I'm sorry Dave, I can't let you do that.}}"
Say a phrase with a custom voice and speech rate:
