class CalPlugin < Plugin
Config.register Config::StringValue.new('cal.path',
- :default => '/usr/bin/cal',
+ :default => 'cal',
:desc => _('Path to the cal program'))
def help(plugin, topic="")
MAX_WIDTH=68
Config.register Config::StringValue.new('figlet.path',
- :default => '/usr/bin/figlet',
+ :default => 'figlet',
:desc => _('Path to the figlet program'),
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_figlet })
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_figlet })
Config.register Config::StringValue.new('toilet.path',
- :default => '/usr/bin/toilet',
+ :default => 'toilet',
:desc => _('Path to the toilet program'),
:on_change => Proc.new { |bot, v| bot.plugins['figlet'].test_toilet })
class HostPlugin < Plugin
Config.register Config::StringValue.new('host.path',
- :default => '/usr/bin/host',
+ :default => 'host',
:desc => _('Path to the host program'))
def help(plugin, topic="")
class SpellPlugin < Plugin
Config.register Config::StringValue.new('spell.path',
- :default => '/usr/bin/ispell',
+ :default => 'ispell',
:desc => _('Path to the program to use to check spelling'))
Config.register Config::StringValue.new('spell.command_line',
:default => '%s -a -S',