Anonymous
public php v1 · immutable //commands time $textfile = file("lol.txt"); $command = str_replace(array(chr(10), chr(13)), '', $ex[3]); if ($command == ":!desu"){ fputs($socket, "PRIVMSG ".$ex[2]." :DESU DESU DESU\n"); } elseif($command == ":!stop"){ fputs($socket,"PRIVMSG $ex[2] Bot stopped!\n"); die(); } elseif($command == ":!proxy"){ fputs($socket,"PRIVMSG ".$ex[2]." : $texfile[array_rand($textfile)];\n"); }