IRC module

master
an 2019-02-23 23:45:47 -05:00
parent 6fbb04415c
commit 10b23a9d8c
1 changed files with 15 additions and 0 deletions

15
source/modules/irc.rb Normal file
View File

@ -0,0 +1,15 @@
class Mod_IRC < Vrobot4::Module::Module
def self.type() "IRC" end
Vrobot4::Module.add_module_type self, server: "IRC"
def initialize info
super
register :c_raw, "raw", "Execute a raw IRC command.", roles: "o"
end
def c_raw m, argv
m.serv.bot.irc.send argv
end
end
## EOF