lib/takosan.rb in takosan-1.0.0 vs lib/takosan.rb in takosan-1.1.0

- old
+ new

@@ -3,15 +3,15 @@ require 'uri' require 'pathname' require 'active_support/all' module Takosan - mattr_accessor :url, :channel + mattr_accessor :url, :channel, :name, :icon module_function def privmsg(message) - request('/privmsg', { 'channel' => @@channel, 'message' => message }) + request('/privmsg', { 'channel' => @@channel, 'message' => message, 'name' => @@name, 'icon' => @@icon }) end def uri_for(path = nil) uri = URI.parse("#{@@url}/#{path}") uri.path = Pathname.new(uri.path).cleanpath.to_s