class Banner
Constants
- ChannelReply
Public Class Methods
Source
# File plugins/banner.rb, line 26 def self.command_pattern /banner(?: (.+))?$/i end
Source
# File plugins/banner.rb, line 55 def self.dispatch_command(args, channel:, user_channels:, bot_channels:, **kwargs) BannerDispatch.dispatch_command( args, channel: channel, user_channels: user_channels, bot_channels: bot_channels, **kwargs ) end
Source
# File plugins/banner.rb, line 51 def self.format_command(args, **kwargs) BannerReport.format_command(args, **kwargs) end
Source
# File plugins/banner.rb, line 73 def self.handle_char(args, network:, channel:, **kwargs) BannerCharCommand.handle(args, network: network, channel: channel, **kwargs) end
Source
# File plugins/banner.rb, line 69 def self.handle_font(args, network:, channel:, **kwargs) BannerFontCommand.handle(args, network: network, channel: channel, **kwargs) end
Source
# File plugins/banner.rb, line 65 def self.handle_letter(args, network:, channel:, **kwargs) BannerLetterCommand.handle(args, network: network, channel: channel, **kwargs) end
Source
# File plugins/banner.rb, line 47 def self.parse(args) BannerParse.parse(args) end
Public Instance Methods
Source
# File plugins/banner.rb, line 77 def execute(m, args = nil) result = self.class.dispatch_command( args, channel: m.channel, user_channels: m.user.channels.map(&:name), bot_channels: bot.channels.map(&:name), network: bot.config.server ) deliver_result(m, result) end
Source
# File plugins/banner.rb, line 99 def execute_char(m, args = nil) result = self.class.handle_char(args, network: bot.config.server, channel: m.channel&.name) deliver_font_result(m, result) end
Source
# File plugins/banner.rb, line 94 def execute_font(m, args = nil) result = self.class.handle_font(args, network: bot.config.server, channel: m.channel&.name) deliver_font_result(m, result) end
Source
# File plugins/banner.rb, line 89 def execute_letter(m, args = nil) result = self.class.handle_letter(args, network: bot.config.server, channel: m.channel&.name) deliver_font_result(m, result) end