Ruby & IRC

R

Rajinder Yadav

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

Jan

[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
 
R

Rajinder Yadav

Jan said:
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?
 
S

Simone D'Amico

Il giorno 01/gen/2010, alle ore 13.34, Rajinder Yadav ha scritto:
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?

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
(e-mail address removed)
 
P

Phillip Gawlowski

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

Rajinder Yadav

Simone said:
Il giorno 01/gen/2010, alle ore 13.34, Rajinder Yadav ha scritto:
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?


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

Simone D'Amico

[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




Simone D'Amico
*nix powered
(e-mail address removed)
 
R

Rajinder Yadav

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


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

Rajinder Yadav

Martin said:
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.
 
P

Phillip Gawlowski

Martin said:
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). :)
 
M

Martin DeMello

Martin said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,149
Latest member
Vinay Kumar Nevatia0
Top