PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...
If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.
"Untitled" by Anonymous [Plain Text]Actions: |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
<?php
set_time_limit(0);
$host = 'irc.hackthissite.org';
$port = '6667';
$nick = 'TESTbot';
$chan = '$musiq';
$socket = fsockopen($host, $port);
fwrite($socket, "USER TESTbot hackthissite.org TEST :TEST bot\r\n");
fwrite($socket, "NICK "."$nick\r\n");
fwrite($socket, "JOIN "."$chan\r\n");
while($fp) {
$in = fgets($fp);
echo $in;
$read = explode(" ", $in);
if($read[0] == "PING") {
fwrite($fp, "PONG ".trim($read[1])."\r\n");
echo "PONG {$read[1]}\n";
$check = 'check';
}
if($done == '0' && $check == 'check') {
$msg = 'Hello I am a gay bot.';
fwrite($socket, "PRIVMSG "."$chan :$msg\r\n");
}
}
?>
|