Invite X Server
Platform: mIRC
Published Oct 09, 2008
Updated Oct 09, 2008
This all goes in a remote file
To use type
!invite Nick2Invite FromServer ToServer
example
/invitexserver Chatter irc.serverHeIsOn.com irc.serverYouAreOn.com
notes.
you will see some info being displayed in your status screen when running the invite bot.
it will auto disconnect after 10 seconds.
alias invitexserver {
set %inet $network
set %ib $me
set %in $1
set %ifroms $2
set %itos $3
sockopen invitexserver %ifroms 6669
echo -s -[Invite X Server Connection Attempt]-
;
;If you feel it stays connected too long play with these timers,
;the 10 is how long he stays online before disconnecting.
;
.timer 1 10 sockclose invitexserver
.timer 1 10 echo -s -[Invite X Server Connection Closed]-
}
on *:sockopen:invitexserver: {
if ($sockerr) { echo -s -[Invite X Server]- Error - $sockerr | return }
else {
echo -s -[Invite X Server Connection Found]-
var %a = sockwrite -nt invitexserver
%a USER InviteBot SassIRC.com InviteBot InviteBot
%a NICK InviteBot
%a PRIVMSG %in Hi %in $+ , %ib has formally invited you to %inet $+ . You can join by typing //server -m %itos
echo -s -[Invite X Server Invite Sent]-
}
}
on *:sockread:invitexserver: {
sockread %ibd
;
;If you want to see all the info the bot recieves uncomment
;this echo statement.
;
;echo -s -[Invite X Server]- %ibd
}
;
;Command
;
;/invitexserver Nick2Invite FromServer ToServer
;
;Example Output
;
;Hi %in, %ib has formally invited you to %inet $+ . You can join by typing //server -m %itos
;
;