Git Product home page Git Product logo

ninja-bot's People

Contributors

andphe avatar dcu avatar guilleiguaran avatar julianduque avatar kuadrosx avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

ninja-bot's Issues

karma plugin error

[2011/08/03 08:47:08.132] !! /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/mongoid-a5eb4600bf41/lib/mongoid/persistence/atomic.rb:37:in add_to_set': wrong number of arguments (1 for 2) (ArgumentError) [2011/08/03 08:47:08.132] !! /home/jfalvarez/projects/ninja-bot/models/user.rb:97:inadd_fan'
[2011/08/03 08:47:08.132] !! /home/jfalvarez/projects/ninja-bot/lib/../plugins/karma.rb:69:in block in execute' [2011/08/03 08:47:08.133] !! <internal:prelude>:10:insynchronize'
[2011/08/03 08:47:08.133] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/bot.rb:142:in synchronize' [2011/08/03 08:47:08.133] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/plugin.rb:273:insynchronize'
[2011/08/03 08:47:08.133] !! /home/jfalvarez/projects/ninja-bot/lib/../plugins/karma.rb:45:in execute' [2011/08/03 08:47:08.133] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/plugin.rb:207:incall'
[2011/08/03 08:47:08.133] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/plugin.rb:207:in block (2 levels) in __register_with_bot' [2011/08/03 08:47:08.133] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/bot.rb:637:ininstance_exec'
[2011/08/03 08:47:08.133] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/bot.rb:637:in block (2 levels) in invoke' [2011/08/03 08:47:08.133] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/bot.rb:636:incatch'
[2011/08/03 08:47:08.133] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/bot.rb:636:in `block in invoke'

mongoid error

When I try to run the bot I got this error:

jfalvarez@ansuz:~/projects/ninja-bot$ ruby bin/ninja-bot
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps.
MONGODB admin['$cmd'].find({:ismaster=>1})
MONGODB admin['$cmd'].find({:ismaster=>1})
/usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/mongoid-358074374fff/lib/mongoid/relations/options.rb:41:in block in validate!': Invalid option :type provided to relation :normal_messages. Valid options are: as, autosave, dependent, foreign_key, order, class_name, extend, inverse_class_name, inverse_of, name, relation, validate. (Mongoid::Errors::InvalidOptions) from /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/mongoid-358074374fff/lib/mongoid/relations/options.rb:35:ineach'
from /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/mongoid-358074374fff/lib/mongoid/relations/options.rb:35:in validate!' from /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/mongoid-358074374fff/lib/mongoid/relations/metadata.rb:295:ininitialize'
from /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/mongoid-358074374fff/lib/mongoid/relations/macros.rb:244:in new' from /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/mongoid-358074374fff/lib/mongoid/relations/macros.rb:244:incharacterize'
from /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/mongoid-358074374fff/lib/mongoid/relations/macros.rb:160:in references_many' from /home/jfalvarez/projects/ninja-bot/models/user.rb:31:inclass:User'
from /home/jfalvarez/projects/ninja-bot/models/user.rb:1:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:inrequire'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in block in require' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:inblock in load_dependency'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:596:in new_constants_in' from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:225:inload_dependency'
from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:239:in require' from /home/jfalvarez/projects/ninja-bot/lib/ninja_bot.rb:90:inblock in load_models'
from /home/jfalvarez/projects/ninja-bot/lib/ninja_bot.rb:89:in each' from /home/jfalvarez/projects/ninja-bot/lib/ninja_bot.rb:89:inload_models'
from /home/jfalvarez/projects/ninja-bot/lib/ninja_bot.rb:82:in load_config' from bin/ninja-bot:15:in

My mongoid gems:

  • mongoid (2.1.2 3580743)
  • mongoid_ext (0.6.2 75c340e)

weather plugin error

[2012/04/24 13:28:07.559] >> :nebiros!~nebiros@unaffiliated/nebiros PRIVMSG #dev-co :!weather medellin
MONGODB ninja-bot['channels'].find({:_id=>"#dev-co"})
[2012/04/24 13:28:07.649] !! /home/nebiros/projects/ninja-bot/lib/vendor/google_weather.rb:51:in `forecast_url': undefined method `values' for nil:NilClass (NoMethodError)
[2012/04/24 13:28:07.649] !!    /home/nebiros/projects/ninja-bot/lib/vendor/google_weather.rb:34:in `forecast_area'
[2012/04/24 13:28:07.650] !!    /home/nebiros/projects/ninja-bot/lib/vendor/google_weather.rb:20:in `forecast'
[2012/04/24 13:28:07.650] !!    /home/nebiros/projects/ninja-bot/lib/../plugins/weather.rb:16:in `execute'
[2012/04/24 13:28:07.650] !!    /home/nebiros/.rbenv/versions/1.9.2-p318/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/plugin.rb:207:in `call'
[2012/04/24 13:28:07.650] !!    /home/nebiros/.rbenv/versions/1.9.2-p318/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/plugin.rb:207:in `block (2 levels) in __register_with_bot'
[2012/04/24 13:28:07.650] !!    /home/nebiros/.rbenv/versions/1.9.2-p318/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:637:in `instance_exec'
[2012/04/24 13:28:07.650] !!    /home/nebiros/.rbenv/versions/1.9.2-p318/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:637:in `block (2 levels) in invoke'
[2012/04/24 13:28:07.650] !!    /home/nebiros/.rbenv/versions/1.9.2-p318/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:636:in `catch'
[2012/04/24 13:28:07.650] !!    /home/nebiros/.rbenv/versions/1.9.2-p318/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:636:in `block in invoke'

!seen error

The !seen action is reporting incorrect dates about the last time of the users in the channel.

10:29 < luisuribe> !seen kuadrosx
10:29 < gigax> luisuribe: Last time I saw kuadrosx was 1 month ago. it said: Remote host closed the connection

(kuadrosx was in the channel yesterday ;)

coderwall error

[2012/06/19 16:38:55.599] >> :Harenson!u3514@gateway/web/irccloud.com/x-nhcmtltsvjozficw PRIVMSG #dev-co :!coderwall
/home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): found unexpected ':' while scanning a plain scalar at line 1 column 274 (Psych::SyntaxError)   
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/psych.rb:151:in `parse'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/psych.rb:127:in `load'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/crack-0.1.8/lib/crack/json.rb:12:in `parse'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/parser.rb:116:in `json'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/parser.rb:136:in `parse_supported_format'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/parser.rb:103:in `parse'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/parser.rb:66:in `call'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/request.rb:217:in `parse_response'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/request.rb:189:in `handle_response'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/httparty-0.7.8/lib/httparty/request.rb:71:in `perform'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/httparty-0.7.8/lib/httparty.rb:390:in `perform_request'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/httparty-0.7.8/lib/httparty.rb:342:in `get'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/httparty-0.7.8/lib/httparty.rb:422:in `get'
        from /home/nebiros/projects/ninja-bot/lib/../plugins/coderwall.rb:29:in `execute'
        from /home/nebiros/projects/ninja-bot/lib/../plugins/coderwall.rb:19:in `coderwall_nickless'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/plugin.rb:207:in `call'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/plugin.rb:207:in `block (2 levels) in __register_with_bot'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:637:in `instance_exec'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:637:in `block (2 levels) in invoke'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:636:in `catch'
        from /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:636:in `block in invoke'

opinion plugin error

[2011/08/01 20:56:47.370] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.9/lib/active_support/core_ext/time/calculations.rb:108:in ago': wrong number of arguments (0 for 1) (ArgumentError) [2011/08/01 20:56:47.370] !! /home/jfalvarez/projects/ninja-bot/lib/../plugins/opinion.rb:145:inexecute'
[2011/08/01 20:56:47.370] !! /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/cinch-b0a7419e3e09/lib/cinch/plugin.rb:416:in call' [2011/08/01 20:56:47.370] !! /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/cinch-b0a7419e3e09/lib/cinch/plugin.rb:416:inblock (2 levels) in __register_with_bot'
[2011/08/01 20:56:47.370] !! /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/cinch-b0a7419e3e09/lib/cinch/handler.rb:43:in instance_exec' [2011/08/01 20:56:47.370] !! /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/cinch-b0a7419e3e09/lib/cinch/handler.rb:43:inblock (2 levels) in call'
[2011/08/01 20:56:47.370] !! /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/cinch-b0a7419e3e09/lib/cinch/handler.rb:42:in catch' [2011/08/01 20:56:47.370] !! /usr/local/rvm/gems/ruby-1.9.2-p290/bundler/gems/cinch-b0a7419e3e09/lib/cinch/handler.rb:42:inblock in call'

*** LOCAL GEMS ***

ago (0.1.5)

google_weather plugin error

15:37 < KaOSoFt> !weather Valledupar

[2011/08/05 15:38:43.811] !! /home/jfalvarez/projects/ninja-bot/lib/vendor/google_weather.rb:51:in forecast_url': undefined methodvalues' for nil:NilClass (NoMethodError)
[2011/08/05 15:38:43.811] !! /home/jfalvarez/projects/ninja-bot/lib/vendor/google_weather.rb:34:in forecast_area' [2011/08/05 15:38:43.811] !! /home/jfalvarez/projects/ninja-bot/lib/vendor/google_weather.rb:20:inforecast'
[2011/08/05 15:38:43.811] !! /home/jfalvarez/projects/ninja-bot/lib/../plugins/weather.rb:16:in execute' [2011/08/05 15:38:43.812] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/plugin.rb:207:incall'
[2011/08/05 15:38:43.812] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/plugin.rb:207:in block (2 levels) in __register_with_bot' [2011/08/05 15:38:43.812] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/bot.rb:637:ininstance_exec'
[2011/08/05 15:38:43.812] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/bot.rb:637:in block (2 levels) in invoke' [2011/08/05 15:38:43.812] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/bot.rb:636:incatch'
[2011/08/05 15:38:43.812] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/bot.rb:636:in `block in invoke'

shapado plugin error

[2011/08/03 08:49:51.451] !! /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/date/format.rb:1037:in _parse': undefined methodgsub!' for 2011-07-25 04:12:12 UTC:Time (NoMethodError)
[2011/08/03 08:49:51.451] !! /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/time.rb:261:in parse' [2011/08/03 08:49:51.452] !! /home/jfalvarez/projects/ninja-bot/lib/../plugins/shapado.rb:51:inparse_feed'
[2011/08/03 08:49:51.452] !! /home/jfalvarez/projects/ninja-bot/lib/../plugins/shapado.rb:18:in block in find_question' [2011/08/03 08:49:51.452] !! /home/jfalvarez/projects/ninja-bot/lib/../plugins/shapado.rb:15:ineach'
[2011/08/03 08:49:51.452] !! /home/jfalvarez/projects/ninja-bot/lib/../plugins/shapado.rb:15:in find_question' [2011/08/03 08:49:51.452] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/plugin.rb:234:inblock (5 levels) in __register_with_bot'
[2011/08/03 08:49:51.452] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/plugin.rb:242:in call' [2011/08/03 08:49:51.452] !! /usr/local/rvm/gems/ruby-1.9.2-p290/gems/cinch-1.1.3/lib/cinch/plugin.rb:242:inblock (5 levels) in __register_with_bot'

rubydoc plugin error in line #17

[2012/06/05 14:06:39.611] !! /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/mechanize-2.0.1/lib/mechanize/http/agent.rb:241:in `fetch': 404 => Net::HTTPNotFound (Mechanize::ResponseCodeError)
[2012/06/05 14:06:39.611] !!    /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/mechanize-2.0.1/lib/mechanize.rb:386:in `get'
[2012/06/05 14:06:39.611] !!    /home/nebiros/projects/ninja-bot/lib/../plugins/rubydoc.rb:17:in `execute'
[2012/06/05 14:06:39.611] !!    /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/plugin.rb:207:in `call'
[2012/06/05 14:06:39.611] !!    /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/plugin.rb:207:in `block (2 levels) in __register_with_bot'
[2012/06/05 14:06:39.611] !!    /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:637:in `instance_exec'
[2012/06/05 14:06:39.611] !!    /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:637:in `block (2 levels) in invoke'
[2012/06/05 14:06:39.611] !!    /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:636:in `catch'
[2012/06/05 14:06:39.612] !!    /home/nebiros/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/cinch-1.1.3/lib/cinch/bot.rb:636:in `block in invoke'

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.