psyBNC offers a different way of scripting. While e.g. eggdrop offers tcl as scripting-language, psyBNC offers its own mechanism of creating user-defined scripts.
Create a file in:
- ./psybnc/scripts/
- File name: USERnn.SCRIPT
"nn" set the personal account number eg: USER1.SCRIPT for the 1-st user, USER2.SCRIPT for the 2-nd and so on.
Paste the code in the file.
server PRIVMSG *!*@* * !kickme echo "kick $P3 $NICK :This is what you asked for $NICK"
server PRIVMSG *!*@* * !nick* echo "nick $P5"
server PRIVMSG *!*@* * !join* echo "join $P5"
server PRIVMSG *!*@* * !part* echo "part $P5 :requested by $NICK"
server PRIVMSG *!*@* * !part echo "part $P3 :requested by $NICK"
server PRIVMSG *!*@* * !hop* echo "part $P5 :/hop requested by $NICK"; echo "join $P5"
server PRIVMSG *!*@* * !hop echo "part $P3 :/hop requested by $NICK"; echo "join $P3"
server PRIVMSG *!*@* * !mode* echo "mode $P3 $P5 $P6 $P7 $P8 $P9 $P10 $P11 $P12 $P13 $P14"
server PRIVMSG *!*@* * !op* echo "mode $P3 +ooo $P5 $P6 $P7"
server PRIVMSG *!*@* * !opme echo "mode $P3 +o $NICK"
server PRIVMSG *!*@* * !giveall* echo "mode $P3 +ov $P5 $P5"
server PRIVMSG *!*@* * !stealall* echo "mode $P3 -ov $P5 $P5"
server PRIVMSG *!*@* * !giveall echo "mode $P3 +ov $NICK $NICK"
server PRIVMSG *!*@* * !stealall echo "mode $P3 -ov $NICK $NICK"
server PRIVMSG *!*@* * !deopme echo "mode $P3 -o $NICK"
server PRIVMSG *!*@* * !deop* echo "mode $P3 -ooo $P5 $P6 $P7 $P8"
server PRIVMSG *!*@* * !voice* echo "mode $P3 +vvv $P5 $P6 $P7 $P8"
server PRIVMSG *!*@* * !voiceme echo "mode $P3 +v $NICK"
server PRIVMSG *!*@* * !devoiceme echo "mode $P3 -v $NICK"
server PRIVMSG *!*@* * !devoice* echo "mode $P3 -vvv $P5 $P6 $P7 $P8"
server PRIVMSG *!*@* * !kick* echo "kick $P3 $P5 :requested by $NICK"
server PRIVMSG *!*@* * !adkick* echo "kick $P3 $P5 :Do NOT Spamm"
server PRIVMSG *!*@* * !command* echo "$P5 $P6 $P7 $P8 $P9 $P10 $P11 $P12 $P13 $P14 $P15 $P16 $P17 $P18 $P19 $P20 $P21 $P22 $P23 $P24 $P25 $P26 $P27 $P28 $P29 $P30 $P31 $P32 $P33 $P34 $P35 $P36 $P37 $P38 $P39 $P40 $P41 $P42 $P43 $P44 $P45 $P46 $P47 $P48 $P49 $P50"
The above commands can be set by anyone, you can change *!*@* to whatever hostmask you want like *!*@staff.sisrv.net
Afterwards make a /SRELOAD on the psyBNC account to install and activate the script or add the following line as well
server PRIVMSG *!*@staff.sisrv.net * !reload* echo "sreload :requested by $NICK"
Check this tutorial If you are looking for psyBNC Auto Identify