Sha256: b72728949736190103ca7a9d6ea9bd4300230b6354abfa64488ca9244639179b
Contents?: true
Size: 516 Bytes
Versions: 1
Compression:
Stored size: 516 Bytes
Contents
require "soup-client" class SoupIRC include Muzang::Plugins::Helpers def initialize(bot, soup) @bot = bot @soup = soup || File.open(ENV["HOME"] + "/.muzang/" + "soup").read.split(":") rescue nil end def call(connection, message) message.message.match(/^!soup (.*?)$/) do |m| soup = Soup::Client.new(@soup.first, @soup.last.chomp) soup.login soup.new_image(m[1]) connection.msg(@bot.channels.first, "soup updated :) | http://#{@soup.first}.soup.io/") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
muzang-plugins-1.1.4 | lib/muzang-plugins/muzang-soupirc.rb |