Giter Club home page Giter Club logo

ruboty's Introduction

Ruboty

Gem Build Status

Ruby + Bot = Ruboty.

Dependencies

  • Ruby 2.2.2

Adapter

Adapter hooks up ruboty to chat services.

Brain

Brain persists memories.

Handler

Handler provides various behaviors.

Other plugins are hosted on Rubygems.

Configuration

Store configuration value in envorinment variables. They are easy to change between deploys without changing any code. We recommend to put .env and run with ruboty --dotenv option to manage them .

All you need to use your favorite plugins is to write their names into Gemfile. Ruboty will load them before running.

# Gemfile
gem "ruboty-cron"
gem "ruboty-google_image"
gem "ruboty-redis"
gem "ruboty-slack"

ENV

DISABLE_DEFAULT_HANDLERS - Pass 1 to disable default handlers (default: nil)
LOG_LEVEL                - Log level for debug (default: 3)
RUBOTY_ENV               - Loaded gem group name (default: development)
RUBOTY_NAME              - Name to respond to mention (default: ruboty)

Deploy

See r7kamura/ruboty-template for example.

Deploy

ruboty's People

Contributors

a2ikm avatar amacou avatar dgnydn avatar eagletmt avatar k0kubun avatar mnyon-grandkru avatar olleolleolle avatar parroty avatar r7kamura avatar rochefort avatar sorah avatar sugi avatar suu-g avatar taiki45 avatar ykzts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruboty's Issues

Rename: Ellen -> Ruboty

  • Ruboty::Adapters::Hipchat
  • Ruboty::Adapters::Slack
  • Ruboty::Adapters::Twitter
  • Ruboty::Brains::Redis
  • Ruboty::Handlers::Alias
  • Ruboty::Handlers::Cron
  • Ruboty::Handlers::Github
  • Ruboty::Handlers::GoogleImage
  • Ruboty::Handlers::SyoboiCalendar

Error of load option with slop v4.0.0

Hi. Some problems occur, using --load option with slop 4.0.0.

1) A case the problems have occured

Gemfile
source "https://rubygems.org"
gem "ruboty"
handlers.rb
puts "handlers.rb is loaded!"
slop version
$ bundle list | grep slop
  * slop (4.0.0)
run ruboty

Running with long option --load, Slop::UnknownOption occurs:

$ bundle exec ruboty --load handlers.rb
/Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/slop-4.0.0/lib/slop/parser.rb:98:in `try_process': unknown option `--load' (Slop::UnknownOption)
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/slop-4.0.0/lib/slop/parser.rb:53:in `block in parse'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/slop-4.0.0/lib/slop/parser.rb:44:in `each'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/slop-4.0.0/lib/slop/parser.rb:44:in `parse'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/slop-4.0.0/lib/slop/options.rb:71:in `parse'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/slop-4.0.0/lib/slop.rb:24:in `parse'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/ruboty-1.1.4/lib/ruboty/command_builder.rb:29:in `options'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/mem-0.1.5/lib/mem.rb:44:in `block in memoize'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/ruboty-1.1.4/lib/ruboty/command_builder.rb:19:in `command_class'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/ruboty-1.1.4/lib/ruboty/command_builder.rb:12:in `build'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/gems/ruboty-1.1.4/bin/ruboty:6:in `<top (required)>'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/bin/ruboty:23:in `load'
    from /Users/nownabe/ruboty/vendor/bundle/ruby/2.2.0/bin/ruboty:23:in `<main>'

(bundle exec ruboty --load=handlers.rb raised same error.)

Running with short option -l, Slop::UnknownOption doesn't occure, but handlers.rb is not loaded.

$ bundle exec ruboty -l handlers.rb
Type `exit` or `quit` to end the session.
> exit

2) A case the same operation as 1) is completed with slop v3.6.0

Gemfile
source "https://rubygems.org"
gem "ruboty"
gem "slop", "~> 3.6"
handlers.rb
puts "handlers.rb is loaded!"
slop version
$ bundle list | grep slop
  * slop (3.6.0)
run ruboty

There is no problem with any load options (--load, --load= or -l):

$ bundle exec ruboty --load handlers.rb
handlers.rb is loaded!
Type `exit` or `quit` to end the session.
> exit

Error with slop 4.0.0

Hi. I was trying out ruboty, and facing the following errors at rake spec command (Error message is indicating that Slop.parse! is missing).

Failures:

  1) Ruboty::Commands::Generate#call with normal condition generates ./ruboty/ directory from our templates
     Failure/Error: Ruboty::CommandBuilder.new(arguments).build
     NoMethodError:
       undefined method `parse!' for Slop:Module
     # ./lib/ruboty/command_builder.rb:22:in `options'
     # ./lib/ruboty/command_builder.rb:18:in `command_class'
     # ./lib/ruboty/command_builder.rb:12:in `build'
     # ./spec/ruboty/commands/generate_spec.rb:10:in `block (3 levels) in <top (required)>'
     # ./spec/ruboty/commands/generate_spec.rb:14:in `block (3 levels) in <top (required)>'
     # ./spec/ruboty/commands/generate_spec.rb:23:in `block (4 levels) in <top (required)>'

...2 more errors continue...

It seems the newer slop is just released (with some breaking changes), and causing the error. It may be good to limit the slop version, or adjust the code to latest version?

Some notes are,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.