egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

psyBNC Scripting?
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Shell & Bouncer Help
View previous topic :: View next topic  
Author Message
Frk
Guest





PostPosted: Fri Oct 11, 2002 1:30 am    Post subject: psyBNC Scripting? Reply with quote

hi all,

is it possible to make scripts for the psyBNc ?

Thanx!! Embarassed
Back to top
ppslim
Revered One


Joined: 23 Sep 2001
Posts: 3914
Location: Liverpool, England

PostPosted: Fri Oct 11, 2002 4:47 am    Post subject: Reply with quote

I don't think so.

The only abilities that PsyBNC has, is the ability to read it's config file.

However, eggdrop can be scripted.

With this, you can script it, to use PysBNC as it's connection to a IRC server, and as normal, use scripts on eggdrop, for other purposes.
_________________
PlusNet Supported Customer - Low cost UK ISP services
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
masskilla
Op


Joined: 03 Oct 2001
Posts: 172
Location: Croatia

PostPosted: Fri Oct 11, 2002 2:11 pm    Post subject: Reply with quote

Hi

Umm .. I believe it is possible to write scripts for psyBNC .. and it even supports TCL (I think .. I'm too lazy to go check the docs) .. but I never bothered to figure out how to script ..
_________________
MaSsKilla

#eggdrop
Undernet
Back to top
View user's profile Send private message MSN Messenger
ppslim
Revered One


Joined: 23 Sep 2001
Posts: 3914
Location: Liverpool, England

PostPosted: Fri Oct 11, 2002 4:40 pm    Post subject: Reply with quote

Yup - I just looked, it does support scripting, but it is very limited.

It doesn't support Tcl directly, but rather, allows you to exec a command on the shell (AKA, call a script script, and hey presto, it uses the output).

I havn't checked, but this is so limiting, it's practicaly usless.
_________________
PlusNet Supported Customer - Low cost UK ISP services
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
method
Guest





PostPosted: Fri Oct 11, 2002 8:52 pm    Post subject: Sqwipting Reply with quote

Depends what you wanna do. I`ve played around with psy scripting a little (version 2.3.1). What did you have in mind?
Back to top
Frk
Guest





PostPosted: Sat Oct 12, 2002 10:03 pm    Post subject: Well..!!!! Reply with quote

yes, u can make scripts for the psyBNc, under the sripts DIR in the shell/FTP,
i tried using a TCL script, well... Semi TCL, and it's working fine, but the psyBNC scripting is limited Surprised

Thanx 4 all the replies ppl. Razz
Back to top
z_one
Master


Joined: 14 Jan 2002
Posts: 269
Location: Canada

PostPosted: Tue Nov 12, 2002 8:21 am    Post subject: Reply with quote

Quote:

Method:
Depends what you wanna do. I`ve played around with psy scripting a little (version 2.3.1). What did you have in mind?

Any comparative document as to what can be done with Psybnc ?
I mean a document where you compare how things are done in TCL and how the same thing can be coded for Psybnc.

Thanks.

z_one
Back to top
View user's profile Send private message
ppslim
Revered One


Joined: 23 Sep 2001
Posts: 3914
Location: Liverpool, England

PostPosted: Tue Nov 12, 2002 8:46 am    Post subject: Reply with quote

HMM - too keep things simple, I will send you a stamp via snail mail - it will include your address, the return address, the alphabet and the instructions you need.

Thats what is available to you.

There are no direct scripting abilities in PsyBNC.

What it refers to as scripting is actualy programs being run on events.

IE, if an event is triggered, then the program associated with that event is called. Whatever the program sends to STDOUT is sent to the IRC server.

Thus, it's is very limited. You have no direct control over the BNC (though, some majic tricks could be used), only the ability to send messages to the server, based on incoming data. Meaning, scripts can only work when a event is triggered.

You could make it into a bot, though you could possibly wait hours until an event is triggered, meaning that you can't send needed commands. As I said, limiting.

Most of this is documented in the README files.

NOTE: The majic tricks are limtied too. A called program could be setup to edit config files, and such, and possibly rehash the BNC using signals (if it supports it). This is probably the most advanced idea possible, but is still limited.
_________________
PlusNet Supported Customer - Low cost UK ISP services
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
z_one
Master


Joined: 14 Jan 2002
Posts: 269
Location: Canada

PostPosted: Fri Nov 15, 2002 4:53 pm    Post subject: Reply with quote

lol @ppslim Razz
Ok I'll be waiting for that stamp by snail mail.
Meanwhile how about u poor me some tequila (the one that is always appended at the end of ur replies. Smile

Cheers!

z_one
Back to top
View user's profile Send private message
tainted
Master


Joined: 12 May 2002
Posts: 239
Location: chicago

PostPosted: Sat Nov 16, 2002 3:07 pm    Post subject: Reply with quote

Psybnc doesn't support much scripting because you use a client to connect to it, which in most cases supports scripting. Would be sorta pointless to have psybnc support scripting.. It would act more like a bot with a bnc tcl loaded. Razz
Back to top
View user's profile Send private message Visit poster's website
walkery
Guest





PostPosted: Tue Dec 03, 2002 8:51 am    Post subject: Reply with quote

OK, so can anyone give me a link to an psybnc scripting forum, coz i got something to ask ...? Confused
Back to top
ppslim
Revered One


Joined: 23 Sep 2001
Posts: 3914
Location: Liverpool, England

PostPosted: Tue Dec 03, 2002 9:23 am    Post subject: Reply with quote

Try asking here.

As noted, the abilities are so limited, I pretty much doubt there would be need to ask questions on it (as in, there wouldn't be enough traffic to warrant a forum).

As for the fact you use a client to connect to it, when a client has the scripting abilities.

From what I guess, this is more suited for offline scripting (when the client isnt connected). You could change version replies and any other CTCP reply, exec shell commands without accessing the shell (security risk, but it can be done).
_________________
PlusNet Supported Customer - Low cost UK ISP services
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
z_one
Master


Joined: 14 Jan 2002
Posts: 269
Location: Canada

PostPosted: Tue Dec 03, 2002 9:47 am    Post subject: Reply with quote

Good point ppslim, that it would be used when the client is not connected.

Say you're opped and detached. The server you're connected to goes down. Psybnc automatically makes you connect to another server (in the servers list).

How to make it auto identify your nick when it gets nickserv's notice ?

z_one
Back to top
View user's profile Send private message
walkery
Guest





PostPosted: Thu Dec 05, 2002 9:06 am    Post subject: Reply with quote

Good point z_one, i idle on undernet (it's lame i know) and i want (for now) my bouncer to login to X when he connects to the irc server...
Psybnc doesent have an connect event so i tryed to intercept first two raws:
Code:
 server   001   -   *   *   echo "PRIVMSG X@channels.undernet.org :login username password"
server   002   -   *   *   echo "MODE $USERNICK +x"

but of course it doesent work Razz
why?
Back to top
ppslim
Revered One


Joined: 23 Sep 2001
Posts: 3914
Location: Liverpool, England

PostPosted: Thu Dec 05, 2002 9:16 am    Post subject: Reply with quote

I havn't had time to check, but I would have thought you have to use a single command, without arguments.

IE, create a small shell script to do the echo, and simply call the shell script.

I will look a little more later.
_________________
PlusNet Supported Customer - Low cost UK ISP services
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Shell & Bouncer Help All times are GMT - 4 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber