dev-co / ninja-bot Goto Github PK
View Code? Open in Web Editor NEWIRC bot for #dev-co at freenode.net
License: MIT License
IRC bot for #dev-co at freenode.net
License: MIT License
[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:in
add_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: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/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:in
synchronize'
[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:in
call'
[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:in
instance_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:in
catch'
[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'
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:in
each'
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:in
initialize'
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:in
characterize'
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:in
class: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:in
require'
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:in
block 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:in
load_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:in
block 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:in
load_models'
from /home/jfalvarez/projects/ninja-bot/lib/ninja_bot.rb:82:in load_config' from bin/ninja-bot:15:in
My mongoid gems:
[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'
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 ;)
[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'
[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:in
execute'
[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:in
block (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:in
block (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:in
block in call'
*** LOCAL GEMS ***
ago (0.1.5)
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 method
values' 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:in
forecast'
[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:in
call'
[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:in
instance_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:in
catch'
[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'
[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 method
gsub!' 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:in
parse_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:in
each'
[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:in
block (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:in
block (5 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/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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.