Changeset 302


Ignore:
Timestamp:
01/14/11 02:15:19 (13 years ago)
Author:
nanardon
Message:

rename module to avoid conflict with sophie-tools

Location:
bot
Files:
3 edited
1 copied
3 moved

Legend:

Unmodified
Added
Removed
  • bot/trunk/Makefile.PL

    r69 r302  
    44# the contents of the Makefile that is written. 
    55WriteMakefile( 
    6     NAME              => 'Sophie::IrcBot', 
    7     VERSION_FROM      => 'lib/Sophie/IrcBot.pm', # finds $VERSION 
     6    NAME              => 'Sophie::Bot', 
     7    VERSION_FROM      => 'lib/Sophie/Bot.pm', # finds $VERSION 
    88    PREREQ_PM         => {}, # e.g., Module::Name => 1.1 
    99    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005 
    10       (ABSTRACT_FROM  => 'lib/Sophie/IrcBot.pm', # retrieve abstract from module 
    11        AUTHOR         => 'Olivier Thauvin <olivier@localdomain>') : ()), 
     10      (ABSTRACT_FROM  => 'lib/Sophie/Bot.pm', # retrieve abstract from module 
     11       AUTHOR         => 'Olivier Thauvin <nanardon@nanardon.zarb.org>') : ()), 
    1212); 
  • bot/trunk/bin/sophie-bot

    r299 r302  
    33use strict; 
    44use warnings; 
    5 use Sophie::Client; 
     5use Sophie::Bot; 
    66use Getopt::Long; 
    77use Pod::Usage; 
     
    3030} 
    3131 
    32 $configfile ||= "$ENV{HOME}/.sophie.conf"; 
     32$configfile ||= "/etc/sophie/sophie-bot.conf"; 
    3333 
    3434if (my $conf = Config::General->new($configfile)) { 
     
    4141} 
    4242 
    43 my $sc = Sophie::Client->new( 
     43my $sc = Sophie::Bot->new( 
    4444    server => $url, 
    4545    login => $login, 
  • bot/trunk/lib/Sophie/Bot.pm

    r299 r302  
    1 package Sophie::Client; 
     1package Sophie::Bot; 
    22 
    33use 5.010000; 
     
    1414 
    1515    my $self = $class->SUPER::new( 
    16         $options{server} || 'http://sophie2.aero.jussieu.fr/rpc' 
     16        $options{server} || 'http://sophie.zarb.org/rpc' 
    1717    ); 
    1818    if ($options{proxy}) { 
  • bot/trunk/lib/Sophie/Bot/IRC.pm

    r299 r302  
    1 package Sophie::Client::IRC; 
     1package Sophie::Bot::IRC; 
    22 
    33use 5.010000; 
    44use strict; 
    55use warnings; 
    6 use base qw(Sophie::Client); 
     6use base qw(Sophie::Bot); 
    77use POE qw(Component::IRC); 
    88 
  • bot/trunk/lib/Sophie/Bot/Term.pm

    r214 r302  
    1 package Sophie::Client::Term; 
     1package Sophie::Bot::Term; 
    22 
    33use 5.010000; 
     
    55use warnings; 
    66use Term::ReadLine; 
    7 use base qw(Sophie::Client); 
     7use base qw(Sophie::Bot); 
    88 
    99our $VERSION = '0.01'; 
Note: See TracChangeset for help on using the changeset viewer.