Ruby & IRC

Hi I am thinking about playing around with IRC Internert Relay Chat messaging, what are some good Ruby gems? Does anyone have experience with using any? Thanks!

···

--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely

If you mean irc bot, try git://github.com/RISCfuture/autumn.git

J

···

On Fri, Jan 1, 2010 at 8:07 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:

Hi I am thinking about playing around with IRC Internert Relay Chat
messaging, what are some good Ruby gems? Does anyone have experience with
using any? Thanks!

--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely

i've been pleasantly impressed with rif
[http://gitorious.org/ruby-irc\]. I've only used it for a small toy
program, but it seemed both featureful and usable.

martin

···

On Fri, Jan 1, 2010 at 4:07 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:

Hi I am thinking about playing around with IRC Internert Relay Chat
messaging, what are some good Ruby gems? Does anyone have experience with
using any? Thanks!

--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely

Also, if you want to hack around with an existing ruby IRC program, you
could check out muby:
http://rubyforge.org/projects/muby/

If it helps, I dug up some old docs I had archived from a couple of
years back:

···

On Fri, 1 Jan 2010 21:07:13 +0900 Rajinder Yadav <devguy.ca@gmail.com> wrote:

Hi I am thinking about playing around with IRC Internert Relay Chat
messaging, what are some good Ruby gems? Does anyone have experience
with using any? Thanks!

Two more libraries you may want to check out:

* Net::YAIL - http://rubyforge.org/projects/ruby-irc-yail/
* silverplatter-irc - GitHub - apeiros/silverplatter-irc: A fully fledged irc library and framework (you can use it in either style)

Regards,

Denis

···

On 01 Jan 2010, at 13:07, Rajinder Yadav wrote:

Hi I am thinking about playing around with IRC Internert Relay Chat messaging, what are some good Ruby gems? Does anyone have experience with using any? Thanks!

--
Denis Defreyne
denis.defreyne@stoneship.org

Jan wrote:

If you mean irc bot, try git://github.com/RISCfuture/autumn.git

basically I want to be able to send and read IRC channel messages, you're saying the the Autumn bot framework should allow me to do this?

···

J

On Fri, Jan 1, 2010 at 8:07 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:

Hi I am thinking about playing around with IRC Internert Relay Chat
messaging, what are some good Ruby gems? Does anyone have experience with
using any? Thanks!

--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely

Martin DeMello wrote:

i've been pleasantly impressed with rif
[http://gitorious.org/ruby-irc\]. I've only used it for a small toy
program, but it seemed both featureful and usable.

martin

Martin, thanks for that info on the gem. I notice ruby-irc only has a single wiki page? is there more docs on it, or is that all.

I'm going to try using socket first and see how that feels. From the feedback I've been given, it seems it's not as difficult as I initially imagined.

···

On Fri, Jan 1, 2010 at 4:07 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:

Hi I am thinking about playing around with IRC Internert Relay Chat
messaging, what are some good Ruby gems? Does anyone have experience with
using any? Thanks!

--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely

Denis Defreyne wrote:

Two more libraries you may want to check out:

* Net::YAIL - http://rubyforge.org/projects/ruby-irc-yail/
* silverplatter-irc - GitHub - apeiros/silverplatter-irc: A fully fledged irc library and framework (you can use it in either style)

Aside: if it doesn't *have* to be IRC, and you could consider XMPP
(Jabber), then there's xmpp4r

···

--
Posted via http://www.ruby-forum.com/\.

I tried Autumn but seems it is not compatible with latest gems.
So I opened a socket and I do it on my own XD

Simone D'Amico
*nix powered
sim@me.com

···

Il giorno 01/gen/2010, alle ore 13.34, Rajinder Yadav ha scritto:

Jan wrote:

If you mean irc bot, try git://github.com/RISCfuture/autumn.git

basically I want to be able to send and read IRC channel messages, you're saying the the Autumn bot framework should allow me to do this?

J
On Fri, Jan 1, 2010 at 8:07 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:

Hi I am thinking about playing around with IRC Internert Relay Chat
messaging, what are some good Ruby gems? Does anyone have experience with
using any? Thanks!

--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely

Since an IRC bot pretty much has to be able to read/write to an IRC channel, I'd say so. :wink:

However, I managed to dig up a Ruby tutorial, that uses an IRC client to write a program via TDD:

I used it for learning TDD, and can recommend it. :slight_smile:

···

On 01.01.2010 13:34, Rajinder Yadav wrote:

basically I want to be able to send and read IRC channel messages,
you're saying the the Autumn bot framework should allow me to do this?

--
Phillip Gawlowski

Check the sources for it, and see if the code's commented. If it is, the RDoc and ri tasks of RubyGem will create useful documentation (useful as in: more than just the method names and arguments). :slight_smile:

···

On 01.01.2010 14:36, Rajinder Yadav wrote:

Martin DeMello wrote:

i've been pleasantly impressed with rif
[http://gitorious.org/ruby-irc\]. I've only used it for a small toy
program, but it seemed both featureful and usable.

martin

Martin, thanks for that info on the gem. I notice ruby-irc only has a
single wiki page? is there more docs on it, or is that all.

--
Phillip Gawlowski

That seems to be all, but I found it easy enough to get up and running
from that and the example bot.

martin

···

On Fri, Jan 1, 2010 at 5:36 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:

Martin DeMello wrote:

i've been pleasantly impressed with rif
[http://gitorious.org/ruby-irc\]. I've only used it for a small toy
program, but it seemed both featureful and usable.

martin

Martin, thanks for that info on the gem. I notice ruby-irc only has a single
wiki page? is there more docs on it, or is that all.

Simone D'Amico wrote:

Jan wrote:

If you mean irc bot, try git://github.com/RISCfuture/autumn.git

basically I want to be able to send and read IRC channel messages, you're saying the the Autumn bot framework should allow me to do this?

J

Hi I am thinking about playing around with IRC Internert Relay Chat
messaging, what are some good Ruby gems? Does anyone have experience with
using any? Thanks!

--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely

I tried Autumn but seems it is not compatible with latest gems.
So I opened a socket and I do it on my own XD

ok that is a neat trick, I'm just getting into IRC stuff, can you point me to any docs that would show me how do this with sockets? I am exploring all my options, thanks!

···

Il giorno 01/gen/2010, alle ore 13.34, Rajinder Yadav ha scritto:

On Fri, Jan 1, 2010 at 8:07 PM, Rajinder Yadav <devguy.ca@gmail.com> wrote:

Simone D'Amico
*nix powered
sim@me.com

Phillip Gawlowski wrote:

basically I want to be able to send and read IRC channel messages,
you're saying the the Autumn bot framework should allow me to do this?

Since an IRC bot pretty much has to be able to read/write to an IRC channel, I'd say so. :wink:

you know what I meant =) I am just looking for a simple clean interface to work with.

However, I managed to dig up a Ruby tutorial, that uses an IRC client to write a program via TDD:

Gray Soft / Not Found

that's awesome, thanks for the link, this will help me get my feet wet!

···

On 01.01.2010 13:34, Rajinder Yadav wrote:

I used it for learning TDD, and can recommend it. :slight_smile:

--
Phillip Gawlowski

--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely

This is a basic implementation with socket. IRC protocol is very simple all you have to do is only the authentication at the start and the answer to the ping request of the server.

http://snippets.dzone.com/posts/show/1785

Simone D'Amico
*nix powered
sim@me.com

···

Il giorno 01/gen/2010, alle ore 14.01, Rajinder Yadav ha scritto:

ok that is a neat trick, I'm just getting into IRC stuff, can you point me to any docs that would show me how do this with sockets? I am exploring all my options, thanks!

Simone D'Amico wrote:

ok that is a neat trick, I'm just getting into IRC stuff, can you point me to any docs that would show me how do this with sockets? I am exploring all my options, thanks!

This is a basic implementation with socket. IRC protocol is very simple all you have to do is only the authentication at the start and the answer to the ping request of the server.

http://snippets.dzone.com/posts/show/1785

Simone this is cool thanks!
Between what you and Phillip have provided this should be plenty with respect to socket IRC coding.
Good to know it's not a complicated process.

···

Il giorno 01/gen/2010, alle ore 14.01, Rajinder Yadav ha scritto:

Simone D'Amico
*nix powered
sim@me.com

--
Kind Regards,
Rajinder Yadav | http://DevMentor.org | Do Good! - Share Freely