Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ruby & IRC

6 views
Skip to first unread message

Rajinder Yadav

unread,
Jan 1, 2010, 7:07:13 AM1/1/10
to
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

Jan

unread,
Jan 1, 2010, 7:16:04 AM1/1/10
to
[Note: parts of this message were removed to make it a legal post.]

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

J

Rajinder Yadav

unread,
Jan 1, 2010, 7:34:07 AM1/1/10
to
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?

Simone D'Amico

unread,
Jan 1, 2010, 7:37:27 AM1/1/10
to

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
s...@me.com

Phillip Gawlowski

unread,
Jan 1, 2010, 7:51:49 AM1/1/10
to
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?

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

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

http://grayproductions.net/ruby/first_steps.html

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

--
Phillip Gawlowski

Rajinder Yadav

unread,
Jan 1, 2010, 8:01:20 AM1/1/10
to

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!

Martin DeMello

unread,
Jan 1, 2010, 8:02:11 AM1/1/10
to
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

Simone D'Amico

unread,
Jan 1, 2010, 8:07:53 AM1/1/10
to
[Note: parts of this message were removed to make it a legal post.]


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!
>


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

Rajinder Yadav

unread,
Jan 1, 2010, 8:17:09 AM1/1/10
to
Phillip Gawlowski wrote:
> 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?
>
> Since an IRC bot pretty much has to be able to read/write to an IRC
> channel, I'd say so. ;)

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:
>
> http://grayproductions.net/ruby/first_steps.html

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

>
> I used it for learning TDD, and can recommend it. :)
>
> --
> Phillip Gawlowski
>
>

Rajinder Yadav

unread,
Jan 1, 2010, 8:26:49 AM1/1/10
to
Simone D'Amico wrote:
> 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!
>>
>
>
> 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.

>
>
> Simone D'Amico
> *nix powered
> s...@me.com
>
>
>
>
>

Rajinder Yadav

unread,
Jan 1, 2010, 8:36:44 AM1/1/10
to
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.

Phillip Gawlowski

unread,
Jan 1, 2010, 9:25:34 AM1/1/10
to
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.

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). :)

--
Phillip Gawlowski

spiralofhope

unread,
Jan 2, 2010, 10:24:57 PM1/2/10
to
On Fri, 1 Jan 2010 21:07:13 +0900
Rajinder Yadav <devg...@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!

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:
http://spiralofhope.com/hosted/muby/


Martin DeMello

unread,
Jan 3, 2010, 3:42:03 AM1/3/10
to
On Fri, Jan 1, 2010 at 5:36 PM, Rajinder Yadav <devg...@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.

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

martin

Denis Defreyne

unread,
Jan 3, 2010, 4:29:51 AM1/3/10
to
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!

Two more libraries you may want to check out:

* Net::YAIL - http://rubyforge.org/projects/ruby-irc-yail/
* silverplatter-irc - http://github.com/apeiros/silverplatter-irc

Regards,

Denis

--
Denis Defreyne
denis.d...@stoneship.org


Brian Candler

unread,
Jan 3, 2010, 8:36:23 AM1/3/10
to
Denis Defreyne wrote:
> Two more libraries you may want to check out:
>
> * Net::YAIL - http://rubyforge.org/projects/ruby-irc-yail/
> * silverplatter-irc - http://github.com/apeiros/silverplatter-irc

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/.

0 new messages