Invite X Server

By PuNkTuReD on 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  
;
;

Comments

Sign in to comment.
GeekShedboy123   -  Jul 23, 2011

Keep up good work :D

 Respond  
GeekShedboy123   -  Jul 23, 2011

Pretty cool.

 Respond  
PuNkTuReD   -  May 08, 2009

cos it is for single invites, it doesnt need to stay connected to the server.

it connects

it invites

it leaves

 Respond  
montague   -  May 08, 2009

instead of making it disconnected evry 10 seconds, how bout make it keep changing nicks evry 10 seconds, just a thought. :D

,

 Respond  
PuNkTuReD   -  Oct 09, 2008

i just prefered the timer

this was just a quick idea so i scripted it.

but thank you for warning people looking at this script.

 Respond  
Typo   -  Oct 09, 2008

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.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.