Starting IRB and interfacing with it

Hey,

I’m working on an IRC bot. I’d like to be able to open an IRB in a
thread or something and have everyone in the channel type in code and
the bot spit back the results. I’m pretty new to Ruby, so I was
wondering where I should start. Any ideas?

Chris

Does it need to work via IRC? You need to be aware that there are
serious security issues with allowing other users to run executable
code on your machine. Could you just use something like Try Ruby
(http://tryruby.hobix.com/)?