:desc => _('Path to the figlet program'),
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_figlet })
Config.register Config::StringValue.new('figlet.font',
:desc => _('Path to the figlet program'),
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_figlet })
Config.register Config::StringValue.new('figlet.font',
:desc => _('figlet font to use'),
:validate => Proc.new { |v| v !~ /\s|`/ },
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_figlet })
Config.register Config::StringValue.new('toilet.path',
:desc => _('figlet font to use'),
:validate => Proc.new { |v| v !~ /\s|`/ },
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_figlet })
Config.register Config::StringValue.new('toilet.path',
:desc => _('Path to the toilet program'),
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_toilet })
Config.register Config::StringValue.new('toilet.font',
:desc => _('Path to the toilet program'),
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_toilet })
Config.register Config::StringValue.new('toilet.font',
:desc => _('toilet font to use'),
:validate => Proc.new { |v| v !~ /\s|`/ },
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_toilet })
:desc => _('toilet font to use'),
:validate => Proc.new { |v| v !~ /\s|`/ },
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_toilet })
# set the commandline params
@params[:figlet] = ['-k', '-w', MAX_WIDTH.to_s, '-C', 'utf8']
# add the font from DEFAULT_FONTS to the cmdline (if figlet has that font)
# set the commandline params
@params[:figlet] = ['-k', '-w', MAX_WIDTH.to_s, '-C', 'utf8']
# add the font from DEFAULT_FONTS to the cmdline (if figlet has that font)
# set the commandline params
@params[:toilet] = ['-k', '-w', MAX_WIDTH.to_s, '-E', 'utf8', '--irc']
# add the font from DEFAULT_FONTS to the cmdline (if toilet has that font)
# set the commandline params
@params[:toilet] = ['-k', '-w', MAX_WIDTH.to_s, '-E', 'utf8', '--irc']
# add the font from DEFAULT_FONTS to the cmdline (if toilet has that font)
# add the filters, if any
toilet_filters.each { |f| @params[:toilet] += ['-F', f.dup] }
# add the filters, if any
toilet_filters.each { |f| @params[:toilet] += ['-F', f.dup] }