mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-25 13:29:29 +01:00
16 lines
331 B
Perl
Executable File
Vendored
16 lines
331 B
Perl
Executable File
Vendored
#!/usr/bin/perl -w
|
|
|
|
# SPDX-FileCopyrightText: 2009-2023 Pragmatic Software <pragma78@gmail.com>
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
use strict;
|
|
use LWP::Simple;
|
|
|
|
$_ = get("http://www.randominsults.net/");
|
|
if (/<strong><i>(.*?)\s*<\/i><\/strong>/) {
|
|
print "@ARGV", ': ' if @ARGV;
|
|
print "$1\n";
|
|
} else {
|
|
print "yo momma!";
|
|
}
|