Coder Social home page Coder Social logo

baseirc's Introduction

BaseIRC

BaseIRC is a very simple library for talking to an IRC server. The only thing this library provides is the outgoing communication from your application. (If you are looking to handle incoming messages take a look at the MessageFactory library.)

install (easy):

gem install baseirc

install (less easy)

git clone http://github.com/spox/baseirc.git
cd baseirc
gem build *.gemspec
gem install ./

install (less easy that’s a little easier)

rip makes it easy to install directly from a github repository.

Testing

BaseIRC is currently tested on:

  • Ruby 1.8.6-p383

  • Ruby 1.8.7-p248

  • Ruby 1.9.1-p376

  • JRuby 1.4.0

Example

Code:

require 'baseirc'

socket = []
irc = BaseIRC::IRC.new(socket)
irc.privmsg('spox', 'hi')

p socket

Result:

["PRIVMSG spox :hi"]

The BaseIRC::IRC object takes a socket, or socket like, object. The only thing the library requires of this object is that it has << defined.

Last remarks

If you find any bugs, please report them through github. If you are in need of any help, you can generally find me on DALnet and Freenode.

License

BaseIRC is licensed under the MIT License
Copyright (c) 2009 spox <[email protected]>

baseirc's People

Contributors

chrisroberts avatar mod-spox avatar

Stargazers

Hinrik Örn Sigurðsson avatar

Watchers

spox avatar  avatar James Cloos avatar

Forkers

isabella232

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.