Software Freedom Law Center

root/trunk/antimatter/tim/Bot-BasicBot-Pluggable/examples/simple.pl

Revision 53, 0.7 kB (checked in by bkuhn, 10 months ago)
  • Added SFLC's internally developed tim bot released under AGPLv3
Line 
1 #!/usr/bin/perl
2
3 # A standard Bot::BasicBot::Pluggable interface. This implements a very
4 # simple bot, with a 'seen' module, a 'google' module and an 'infobot'
5 # module.
6
7 use warnings;
8 use strict;
9 use Bot::BasicBot::Pluggable;
10
11 my $bot = Bot::BasicBot::Pluggable->new( channels => [ ],
12                                          server => "london.irc.perl.org",
13                                          nick => "jerabot",
14                                          );
15                                          
16
17 $bot->load("Seen");
18
19 #my $google = $bot->load("Google");
20 #$google->set("google_key", "xxxxxxxxxxxxxxx");
21
22 $bot->load("Infobot");
23 $bot->load("Title");
24
25 $bot->run();
26
Note: See TracBrowser for help on using the browser.

SFLC Main Page

[frdm] Support SFLC