![oz modic](/assets/img/avatar_default.png)
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
22 lines
436 B
Ruby
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
|