Eval.in plugin
This is a plugin that allows users to evaluate Ruby code on https://eval.in/. It can be sent queries as follow:
>> "Hello world"'
10>> TRUE.type # Ruby 1.0 # MRI 1.0
18>> true.respond_to? :type # MRI 1.8.7
19>> true.type # MRI 1.9.3
20>> false.class # MRI 2.0.0
21>> 'strange'.length # MRI 2.1
Installation
To install this, run the following command:
gem install cinch-eval-in
Here's an example of how to use it:
require "cinch"
require "cinch/plugins/eval_in"
bot = Cinch::Bot.new do
configure do |c|
# You can of course add more plugins and other options here.
c.plugins.plugins = [Cinch::Plugins::EvalIn]
end
end
bot.start