Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ConnMain(data)
- {
- local raw = split( data, "\r\n" );
- local a, z = raw.len(), Data;
- for ( a = 0; a < z; a++ )
- {
- Data = raw[a];
- local params = split( Data, " " );
- if ( params[ 0 ] == "PING" ) {Sock.Send( "PONG " + params[ 1 ] + "\n" ); Sock.Send( "NAMES :#" + EchoChannel + "\n" ); Sock.Send( "PONG " + params[ 1 ] + "\n" ); Sock.Send( "NAMES :#" + AdmChannel + "\n" );Sock.Send( "NAMES :#" + R_Channel + "\n" )}
- }
- }
- function ConnFunc()
- {
- print("Connected!");
- Sock.Send("USER ProsuBot 0 * : The ProsuBot \n");
- Sock.Send("NICK ProsuBot \n");
- Sock.Send("join #Aaron\n");
- }
- function LostFunc()
- {
- print("Couldn't connect to the server.");
- }
- function onScriptLoad()
- {
- Sock <- NewSocket("ConnMain");
- Sock.Connect("91.121.134.5", 6667);
- Sock.SetNewConnFunc("ConnFunc");
- Sock.SetLostConnFunc("LostFunc");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement