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
;
;
People should understand that this is just like connecting yourself and inviting someone to another server so in most cases it will be against the rules to even do this. There are very few servers that would be ok with the use of a bot like this and if they notice it you will undoudtably be glined.
Lets be honest, connecting, spamming and disconnecting is afterall pretty lame.
I just think the newer users should be warned this isn't some magical bot, it uses your conection and would be the same as connecting to the server yourself so any glines or other bans it incures will apply to you as well.
I was also wondering why it uses a timer to disconnect from the server its spamming instead of just connecting, spamming and then ending the connection manually.
Not a bad little snippet I guess but it could use some work.