mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-09 06:55:39 -04:00
Merge branch 'master' of github.com:simcop2387/perlbuut
This commit is contained in:
commit
747a592c56
3 changed files with 44 additions and 1 deletions
25
Makefile.PL
Normal file
25
Makefile.PL
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
#!env perl
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
|
||||||
|
use inc::Module::Install;
|
||||||
|
|
||||||
|
name "Buubot";
|
||||||
|
version 0.1;
|
||||||
|
#all_from 'lib/Bot/BB3.pm';
|
||||||
|
|
||||||
|
requires 'POE' => 0;
|
||||||
|
requires 'Parse::RecDescent' => 0;
|
||||||
|
requires 'Config::General' => 0;
|
||||||
|
requires 'Cache::FastMmap' => 0;
|
||||||
|
requires 'POE::Component::IRC::Common' => 0;
|
||||||
|
requires 'POE::Component::IRC' => 0;
|
||||||
|
|
||||||
|
requires 'Geo::IP' => 0;
|
||||||
|
requires 'XML::RSS::Parser' => 0;
|
||||||
|
requires 'WWW::Shorten' => 0;
|
||||||
|
requires 'WWW::Mechanize' => 0;
|
||||||
|
requires 'URI::Encode' => 0;
|
||||||
|
|
||||||
|
WriteAll;
|
|
@ -69,7 +69,7 @@ http_plugin_port 1092
|
||||||
username perlbot
|
username perlbot
|
||||||
password superbadola
|
password superbadola
|
||||||
port 6667
|
port 6667
|
||||||
root_mask ~simcop238@p3m/member/simcop2387
|
root_mask p3m/member/simcop2387
|
||||||
</bot>
|
</bot>
|
||||||
|
|
||||||
<bot perlbot>
|
<bot perlbot>
|
||||||
|
|
18
plugins/zippit.pm
Normal file
18
plugins/zippit.pm
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
use LWP::UserAgent;
|
||||||
|
use URI::Escape qw/uri_escape/;
|
||||||
|
|
||||||
|
no warnings 'void';
|
||||||
|
sub {
|
||||||
|
my( $said ) = @_;
|
||||||
|
|
||||||
|
my $ua = LWP::UserAgent->new();
|
||||||
|
my $foo = $ua->get('http://xn--55d.com/cgi/yep2.pl?txt='.uri_escape($said->{body}));
|
||||||
|
if ($foo->is_success) {
|
||||||
|
print $foo->content;
|
||||||
|
} else {
|
||||||
|
print $foo->status_line;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
__DATA__
|
||||||
|
zippit <text>; gives back a random saying from the zippit plugin
|
Loading…
Add table
Reference in a new issue