Sha256: 7c32f242ccfa951cd6579bd4b03dcf46a8019510262af95a8c45e2566fd73167
Contents?: true
Size: 607 Bytes
Versions: 5
Compression:
Stored size: 607 Bytes
Contents
require 'dazeus/event/event' module Dazeus module Event class Message < Event attr_accessor :message, :network, :channel, :nick def post_init super @network = @params[0] @nick = @params[1] @channel = @params[2] @message = @params[3] end def reply(message, highlight=false, action=false) @dazeus.reply(@network, @channel, @nick, message, highlight, action) end def highlight(message) reply(message, true) end def action(message) reply(message, false, true) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems