Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

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

Resources

License

Packages

No packages published