Changeset 345 for trollforge
- Timestamp:
- 05/27/10 19:20:09 (3 years ago)
- File:
-
- 1 moved
-
trollforge/pynchon/pastebin.pl (moved) (moved from trollforge/pynchon/lispbp.pl) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trollforge/pynchon/pastebin.pl
r344 r345 3 3 # cmdline tool to make the lisp pastebin bot flood freenode chans 4 4 # 5 # usage: lispbp.pl channel username message 6 5 # usage: 7 6 use warnings; 8 7 use strict; … … 14 13 my $f = WWW::Mechanize::FormFiller->new(); 15 14 15 16 if ($#ARGV < 4) { 17 print "usage lispbp.pl 1|2 channel username message" 18 } 19 20 my $pb = shift @ARGV; 16 21 my $chan = shift @ARGV; 17 22 my $user = shift @ARGV; 18 23 my $title = join(' ', @ARGV); 19 24 20 $m->get("http://paste.lisp.org/new/lisp");21 25 22 $m->submit_form(form_number => 1, fields => { 23 channel => $chan, 24 username => $user, 25 title => $title, 26 captcha => "lisp", 27 text => "lol" } ); 26 my $tdb = WWW::Mechanize->new(); 27 $tdb->get("http://rolloffle.churchburning.org/troll_me.php"); 28 my $paste = $tdb->content( format => 'text' ); 29 30 if ($pb eq "1") { 31 print "using http://paste.lisp.org/new/lisp\n"; 32 $m->get("http://paste.lisp.org/new/lisp"); 33 $m->submit_form(form_number => 1, fields => { 34 channel => $chan, 35 username => $user, 36 title => $title, 37 captcha => "lisp", 38 text => $paste } ); 39 } 40 41 if ($pb eq "2") { 42 print "using http://erxz.com/pb/html\n"; 43 $m->get("http://erxz.com/pb/html"); 44 $m->submit_form(form_number => 1, fields => { 45 channel => $chan, 46 nick => $user, 47 summary => $title, 48 paste => $paste } ); 49 }
Note: See TracChangeset
for help on using the changeset viewer.
