Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $bot = new CPbot();
- $serverid = "ID of server you want the bot to connect to";
- $roomid = "ID of room you want the bot to connect to";
- $bot->connect($serverid);
- $bot->join($roomid);
- class Cpbot{
- $rawPack = readRawPacket();
- private $id = "Penguin to follow's ID";
- public $username = "Bot name here";
- private $password = "Bot password here";
- if ($username){
- echo "Username correct";
- }
- else{
- echo "Username is incorrect";
- }
- if ($password){
- echo "Logged into penguin";
- }
- if ($bot->connect($serverid)){
- echo "Connected to server";
- }
- else{
- echo "A fatal error occured";
- }
- if ($bot->join($roomid)){
- echo "Connected to room";
- }
- else{
- echo "Couldn't connect to room";
- }
- $x = stribet($rawPack, “xt%sp%$roomid%$id%”, “%”);
- $y = stribet($rawPack, “xt%sp%$roomid%$id%$x%”, “%”);
- goto($x, $y);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement