![]() |
psybnc авто-авторизация с nickserv
как бы мне добавить авто-auth с nickserv
в psybnc? ACCESS комнады у nickserv-а нету в этой сети (ircnet.ru) ? |
Хм... если тока прописать в папку scripts какой-то скрипт...
Или проше всего добавить в perform линию Ident'а.... |
Цитата:
но вот только какой. единственную доку по скриптингу - файл SCRIPTING из дистриба psybnc ничего я там не нашел подходящего нужного события (on-connect что ли) там почему-то нет, или я плохо искал =) |
чет подобное я видел в NoNamescript. Канешна эт для квейкнета, но все же там фишка эта есть %)).
|
Цитата:
Лучше прописать в perofrm А я сам юзаю NN script... там есть для 3 нетворков... Точнее 2 и еше все те где есть Nickserv... NN script |
да не о том разговор
не о клиенте а о psybnc, там свой скриптинг, довольно простой, нада просто вписать что при нотисе от никсерва посылать такуюто строку и всё |
Макс как всегда прав.=) Только я вам не советую этого делать, потому что не стоит хранить пароли на шелле.
|
Цитата:
Nikto ne podskazhet, gde naiti manuals / tutorials po scriptingu psybnc ? davno iskal i krome vot etovo: http://www.eggdrops.de/hdat/psybnc/SCRIPTING ni4e ne nashel. (interesuet osobo forbidden word auto ban, blacklisted user joins auto ban, blacklisted channels users auto ban etc.) |
SCRIPT FORMAT:
Every User may have a script, its name always is USER%n.SCRIPT and this script is being put into the scripts/ subdirectory of the bouncerdirectory. Same for executables, they have to be put into the script-Dir. General Syntax: function event fromuserhost/name to content script FUNCTIONS: dccchat - take a dcc chat request (and answer possibly) dccsend - user sends a file (autoaccept ?) server - process a message from the server to the client defined in event from fromuserhost to "to" dialogue - talk to the user via the nick "to" in brackets ctcp - process a ctcp defined in event from user to "to" alias - intercept the command in "event" An example for a user Script: -------- ; dialogues dialogue - - news - scripts/newsticker dialogue - - sms - scripts/sendsms ; intercept dcc chats for our file server, only from some users dccchat - *!*john@*.myisp.com - - scripts/fileserver dccchat - *!*jack@*.myisp.com - - scripts/fileserver dccchat - *!*lamer@*.dumb.org - - scripts/eliza ; intercept dcc files for my own sending dccsend - *!*john@*.myisp.com - - scripts/fileget dccsend - *!*jack@*.myisp.com - - scripts/fileget ; some server-events server JOIN *!*pope@*.vatican.va #satan - echo "PRIVMSG #satan :Damned !" server KICK *!*@* joe - echo "PRIVMSG $NICK :Hey, dont kick Joe !" server PRIVMSG *!*@* * *idiot* echo "KICK $TO $NICK :Word kick on idiot" ; two ctcps ctcp VERSION *!*@* - - echo "PRIVMSG $NICK :"$X01"VERSION"$X01" psyBNC2.2 (c) by the most psychoid" ctcp FINGER *!*@* - - echo "PRIVMSG $NICK :"$X01"FINGER"$X01" Don't finger me" ; alias alias maillog "Mail me my log" - - mail me@myisp.com < ~me/psybnc/log/psybnc.log; echo Mail sent >&2 ---------- structure like the following: CONSTANTS in the environment: $NICK - nickname of the sender $IDENT - ident of the sender $HOST - host of the sender $USER - nick!ident@host $CMD - command triggered $TO - destination of the command $CONTENT - content of the command $P1 ... Pn - CONTENT in different parameters $USERNUMBER - Number of the User triggering the script $USERLOGIN - Login of the User triggering the script $USERNICK - Nickname of the User triggering the script In the case of a DIALOGUE (permanent background): $MYNICK - dialogue from-nick for the User (appears as (nick) query In the case of a DCC FILE Offer: $IP - Ip the receiver waits for a connect $PORT - Port of the receiver waits for a connect In the case of a DCC FILE Offer and Get: $FILE - Name of the file to send/receive STDIN, STDOUT and STDERR are in the case of the following functions: a DCC Chat: (background) - STDIN = output goes to psybnc, input comes from the dcc chat - STDOUT = output goes to the dcc chat - STDERR = LOG of the bouncer a DCC FILE SEND: (ran at event, can be backgrounded) - STDIN = output goes to psybnc (commands, to the server, raw Format) - STDOUT = output goes to psybnc (commands, to the server, raw Format) - STDERR = LOG of the bouncer a SERVER-EVENT: (ran at event) - STDIN = output goes to the user, no input - STDOUT = output goes to psybnc (commands, to the server, raw Format) - STDERR = LOG of the bouncer a DIALOGUE: (background, started on first query) - STDIN = Input from the User to our nick (stripped off PRIVMSG etc.) - STDOUT = Output from our nick to the User (stripped off PRIVMSG etc.) - STDERR = LOG of the bouncer a CTCP: (ran on event) - STDIN = Output goes to the User (in raw format) - STDOUT = Output goes to psybnc (commands, to the server, raw format) - STDERR = Log of the bouncer an ALIAS: (ran on trigger) - STDIN = Output to the User (in raw Format) - STDOUT = Output to psybnc (in raw Format) - STDERR = LOG of the bouncer About dccchat events: - the User will receive a dcc chat request from someone on irc - it has to match a host in the Script - the script will be called, after the DCC Chat Request was sent, so the script needs to answer the Request automatically before any connection gets established, by ECHO "DCCANSWER $NICK" >&0 (this would send psybnc the command to accept) then, if the chat got established, the task receives CONNECTED It should timeout after some time. If you created or changed your script while psyBNC runs, just put your script into the script dir, then use /SRELOAD on the bouncer to reload your script. About dialogues: - A dialogue may be any command, that can stay in the background and feed the output with text-data and waits for input on stdin. The User will get a Query from ($TO) (in brackets) and can answer the running task or interact in any way he wants. Another comment: psyBNC scripting processes fork from the main task to deny blocking of other users. This could not be solved in another way. Providerowners possibly would like to disable this function. |
obyasneniy vezde polno, a nado realnie scripti ili primeri raznix comand...
|
a sho konkretno nada sdelat scriptom ?
|
- auth on X on join (servers of Undernet)
- ban users that in blacklist ( naprimer *fuck*!*@*) - ban users from blacklisted channels (#nazi etc.) - ban users on triger (naprimer user napisavshi slovo "fuck" srazu dolzhen bit' zabanen) bolee slozhnie scripti ya sam napishu, esli uvizhu primeri vishe pere4islenix. nigde realno rabotayushix primerov naiti ne mogu :( |
Spawn, а зачем именно на psybnc? можно найти скрипт для самого ирцнета и при заходе на бнц скрипт будет делать атвоматом то что будет прописано.
|
Скрипты Форева!!!!
а можно мне сделать такой скрипт на psybnc чтобы он мне сам варил кофе и полы мыл?:))) кароч я к чему все это , все такие умные!!! человек просил вас конкретно скрипт для авторизаций, а вы тут чат устроили что ICQ и IRC не хватает? ______________________________ ______________________ Наше дело не рожать!!! Сунул,вынул и бежать!!! |
| Часовой пояс GMT +3, время: 10:13. |
Перевод: zCarot
Форум Асечников © Asechka.RU