Starting IRB and interfacing with it


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?


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