simple psybnc scripting

Did you know that we can do scripting for psyBNC?

the purpose of psyBNC scripting mainly if you want to control your psyBNC without really need to login into it.

here i will provide simple code i used for my psyBNC

well we can start doing it by opening DEFAULT.SCRIPT in /psybnc/scripts/ folder, (assuming you installed your psyBNC there)

open it using pico or the vi (if you using terminal)

paste this code

server PRIVMSG swey!*@* * !nick* echo “nick $P5″
server PRIVMSG swey!*@* * !join* echo “join $P5″
server PRIVMSG swey!*@* * !part* echo “part $P5″
server PRIVMSG swey!*@* * !leave echo “part $P3″
server PRIVMSG swey!*@* * !leave echo “part $P3″
server PRIVMSG swey!*@* * !kick* echo “kick $P3 $P5 $p6 :requested by $NICK”
server JOIN swey!*@* #maher * echo “privmsg #maher welcome back $NICK”
server PART *!*@* #maher * echo “privmsg $NICK thank for joining $p4, come again later =)”

then use /SRELOAD in your psyBNC command to reload the script

before that, please replace swey with your own nick!

you can change the DEFAULT.SCRIPT to username.script of you want to set script for specific user

note : don’t expect to do complex scripting since it only support small and very simple syntax.there is much more powerful and flexible bot called eggdrop that use tcl and perl as scripting engine
if you need more help or explaination, please refer to HM2K article on psybnc scripting or you can simple ask it here

4 Comments

  1. Posted April 17, 2007 at 11:44 am | Permalink

    its perfect ur scriting

    for loguien the nick and recover de op on the chanels in Undernet network u can use this

    go to the script directory
    pico USER1.SCRIPT

    server NOTICE * * “*Highest connection count*” echo “PRIVMSG x@channels.undernet.org :login ”

    saves and run ur psybnc

    but im not discovering yet how make the psy take mode x

  2. nixus
    Posted December 14, 2007 at 8:36 pm | Permalink

    hi, what about a channel limiter script ?

  3. Posted December 14, 2007 at 10:42 pm | Permalink

    @nixus this only for basic/limited function scripting only.. if ur looking something like bot then i recommend you to try eggdrop or emech

  4. Posted January 21, 2008 at 7:05 am | Permalink

    making psybnc take mode +x:

    server NOTICE * * “*Highest connection count*” echo “PRIVMSG x@channels.undernet.org :login user pass”; echo “MODE $USERNICK +x”

    easy :D
    for more psyBNC scripting support just find me at irc.ogamenet.net #Trivia.es or mailme: bardahl@irctrivia.es