tcpbot/plugins/Barf.rb
oz modic c8d0c13c1c added several new plugins
ACL: modify ACL perms
Barf: silly test plug
BotTools: join and part
Circumstantial:  excuses, success messages...
Pastebin: paste module code to pastebin
RawCmd: raw unix command line, and eval ruby code. requires super privilege
Reminder: reminders reminders!
URLInfo: output url info when url is detected
Unixfun: figlet, cowsay, fortune. make sure u have them installed
Voteage: user++, user--, :score user
2016-03-19 04:09:28 -06:00

22 lines
436 B
Ruby

require 'cinch'
require_relative '../classes/Util.rb'
class Barf
include Cinch::Plugin
include Util::PluginHelper
set :prefix, /^:/
@clist = ["barf"]
@@commands["barf"] = ":barf <user>: barfs on <user>"
match /barf( .+)?/, method: :barf;
def barf(m, user = nil)
target = ""
case user
when nil
target = m.user
else
target = user.strip
end
m.action_reply "barfs on #{target}"
end
end