tcpbot/plugins/Say.rb

21 lines
432 B
Ruby
Raw Normal View History

2013-07-07 07:14:53 +00:00
require 'cinch'
require_relative '../classes/Util.rb'
class Say
include Cinch::Plugin
include Util::PluginHelper
set :prefix, /^:/
@clist = %w{say}
@@commands["say"] = ":say :shyt - say :shyt bro!"
extend Hooks::ACLHook
match /say (.+)/;
match /say (#[\w\d]+) (.+)/, method: :sayto
2013-07-07 07:14:53 +00:00
def execute(m, phr)
m.reply "#{phr}"
end
def sayto(m, chan, phr)
Channel(chan).send phr
end
2013-07-07 07:14:53 +00:00
end