rendered paste bodyinclude XChatRubyclass Figlet < XChatRubyPlugin def initialize hook_command('Fig', XCHAT_PRI_NORM, method(:fig), 'Usage: /fig <message>') hook_command('Figx', XCHAT_PRI_NORM, method(:figx), 'Usage: /figx <message>') puts 'Loaded Figlet Plugin' end def fig(words, words_eol, data) command("figx 1 #{words_eol[1]}") return XCHAT_EAT_ALL end def figx(words, words_eol, data) if words[2] message = words_eol[2] for i in 0...words[1].to_i message = `figlet "#{message}"` end for line in message.split("\n") command('msg ' + get_info('channel') + ' ' + line) end end return XCHAT_EAT_ALL endend