Giter VIP home page Giter VIP logo

ponder's People

Contributors

clintecker avatar evan-stripe avatar hotfusionman avatar hunter-dolan avatar neektza avatar nelhage avatar simi avatar tbuehlmann 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

Watchers

 avatar  avatar  avatar  avatar  avatar

ponder's Issues

Get MODEs after joining

Get MODEs after joining a channel. Adapt the on :join handler. Let's have two, one "raw" after joining and one "initialized" one for the moment we got the user list and modes?

Also, parse incoming mode answers, like 324, 329.

Update README

Update README regarding :defer => true and Async IRC methods.

README: Timer

Add some information about EM::Timer and EM::PeriodicTimer.

DCC

Get DCC support for sending files.

Formatting

Add Formatting information to the README.

Tests

Rewrite tests. Test async methods with an emulated an IRC Server. Rewrite test_helper, remove Pathname. Test filters.

Proper user management

Try to have all known users (in @user_list) to be as up to date as possible. Update user data on whois and other events.

Wiki

More Wiki contents needed.

  • Mention that in the on :join handler the user has no access to the channel's user list or chanel modes.

Notifications

Add Notifications to be able to do metrics and debugging. Maybe logging through Notifications?

syntax error, unexpected kEND, expecting $end

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': /usr/lib/ruby/gems/1.8/gems/ponder-0.0.1/lib/ponder/thaum.rb:232: syntax error, unexpected ')', expecting '=' (SyntaxError)
/usr/lib/ruby/gems/1.8/gems/ponder-0.0.1/lib/ponder/thaum.rb:242: syntax error, unexpected kEND, expecting $end
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/ponder-0.0.1/lib/ponder.rb:12
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from bot.rb:2

Defering callbacks

Don't defer each and every callback, let the user decide whether the processing should be defered.

Something like:

@ponder.on(:channel, :defer => true) do |event_data|
  # ...
end

Async methods not handled by exception handling

Exceptions thrown inside an on-block will be handled. When using Async methods like whois, the provided callback/errback code will run inside the EM-reactor and won't be exception handled. Example:

@ponder.on(:channel, /foo/) do |event_data|
  # does not explode
  1/0
end

@ponder.on(:channel, /!explode/) do |event_data|
  whois = @ponder.whois('foo')

  whois.callback do |whois_data|
    # does explode
    1/0
  end
end

I'm pondering about using Fibers to stop execution on whois and resume it when the whois_data has arrived. Will also reduce entangled evented spagetti code. Gonna check if possible and non-blocking..

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.