Generator of fake data such as names, addresses, and phone numbers for the Lita chat bot.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
locales
spec
templates
.gitignore
.rspec
.rubocop.yml
.simplecov
.travis.yml
CHANGELOG.md
Gemfile
LICENSE
README.md
Rakefile
lita-faker.gemspec

README.md

Lita::Handlers::Faker

Gem Version Build Status Coverage Status

Generator of fake data such as names, addresses, and phone numbers for the Lita chat bot.

Usage

At first, see the documentation for Lita: http://docs.lita.io/

Installation

Add lita-faker to your Lita instance's Gemfile:

gem 'lita-faker', '~> 0.1.0'

Configuration

Faker requires locale. Put the following to config:

Lita.configure do |config|
  config.robot.locale = 'en-US'
end

Commands

lita-faker provides all commands of Faker which don't require arguments

Commands are written in snake_case, so Faker::PhoneNumber.cell_phone became faker phone_number cell_phone

fake is alias for faker

Examples

You: lita fake name name
Lita: Halie Waelchi
You: lita faker lorem sentence
Lita: Eveniet nemo tempore voluptatem et voluptas ea.