Created
March 7, 2013 15:51
-
-
Save rubemlrm/5109019 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This is one example to create one auto join script to irc . | |
| <code> | |
| on *:START:{ | |
| .server irc.tik-t0k.net:+6697 -i <nick> | |
| .server -m irc.network -i <nick> (this is the syntax that you have to your script connect to other networks.) | |
| } | |
| on *:NOTICE:*This nickname is registered and protected*:*:{ | |
| if ($nick == NickServ && $network == TiK-T0K ) { | |
| .msg nickserv IDENTIFY <pass> | |
| } | |
| elseif ($nick == NickServ && $network == <network>) { | |
| .msg nickserv IDENTIFY <pass> | |
| } | |
| } | |
| on *:NOTICE:*Password accepted*:*:{ | |
| if ($nick == NickServ && $network == TiK-T0K) { | |
| /msg PTNBot invite <code> | |
| } | |
| elseif ($nick == NickServ && $network == <network>) { | |
| join <channel and pass> | |
| } | |
| } | |
| </code> | |
| So let me explain this script : | |
| The first part : | |
| <code> | |
| on *:START:{ | |
| .server irc.tik-t0k.net:+6697 -i <nick> | |
| .server -m irc.network -i <nick> (this is the syntax that you have to your script connect to other networks.) | |
| }</code> | |
| There you define wich networks script it will connect and with wich nicks you want use.2 important things on this part. Dont forget to use the "-m" argument if you use several networks on this script like its exampled on this script. | |
| Second Part: | |
| <code> | |
| on *:NOTICE:*This nickname is registered and protected*:*:{ | |
| if ($nick == NickServ && $network == freenode ) { | |
| .msg nickserv IDENTIFY <pass> | |
| } | |
| elseif ($nick == NickServ && $network == <network>) { | |
| .msg nickserv IDENTIFY <pass> | |
| } | |
| </code> | |
| on this part you will identify your nick by introducing your irc pass. in this part you can use a "else if" condition if you use more than one nick on the same network. | |
| Third part: | |
| <code> | |
| on *:NOTICE:*Password accepted*:*:{ | |
| if ($nick == NickServ && $network == freenode) { | |
| /msg PTNBot invite <code> | |
| } | |
| elseif ($nick == NickServ && $network == <network>) { | |
| join <channel and pass> | |
| } | |
| } | |
| </code> | |
| After you get your nick identify you will join the channels that you define on this part. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment