This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 11 matches

by sparc317
Mon Apr 07, 2008 2:30 pm
Forum: Tcl FAQ
Topic: socket api - nonblocking tcp made easy
Replies: 9
Views: 43435

Thanks so much for this, saves so much hassle :) I was wondering if you could tell me how it is possible to "address" an individual socket, using the following example: proc connection_handler {host port type sock {arg ""}} { switch -- $type { "onConn" { sock::Set $sock...
by sparc317
Thu Jan 31, 2008 5:24 pm
Forum: Scripting Help
Topic: How to get a script to reload itself in eggdrop?
Replies: 8
Views: 10403

Heh Metroid,

Its not when the bot disconnects which I'm looking to handle, its when the TCP connection my script monitors disconnects.

Seems to be working how I want though, thank god these forums exist so many helpful people on here :)
by sparc317
Wed Jan 30, 2008 4:20 pm
Forum: Modules & Programming
Topic: Log all bot messages (patch)
Replies: 13
Views: 49018

nml375 wrote: The closest thing you can get to this, is activating "raw logging", which enables two new logflags, one for outbound server traffic (v), and one for inbound server traffic (r). See the "raw-log" setting in your eggdrop-configfile for further info.
Thanks, I'll check this out.
by sparc317
Wed Jan 30, 2008 4:18 pm
Forum: Scripting Help
Topic: How to get a script to reload itself in eggdrop?
Replies: 8
Views: 10403

Hey, Cheers for the replies. Sorry I was being a bit dumb (long day) its a script I wrote so load/unload mod will be pointless. I've achieved what I need now using the following though: "onDisc" { sleep 120 exec "/bin/kill -HUP `cat /usr/home/xxx/eggdrop/pid.xxxx`" } Noticed that...
by sparc317
Wed Jan 30, 2008 5:50 am
Forum: Modules & Programming
Topic: Log all bot messages (patch)
Replies: 13
Views: 49018

Yeah, quite annoying really but not a showstopper.

I just added an addition putlog command in my TCL script which logs the same message that is sent to the channel in the end.
by sparc317
Wed Jan 30, 2008 5:48 am
Forum: Scripting Help
Topic: How to get a script to reload itself in eggdrop?
Replies: 8
Views: 10403

I am the writer of the script :) My question is how to get just the script to reinitialize itself. I have rejigged my script to do the following when the connection drops: sleep 120 restart This is fine but it causes the entire eggdrop to reload (bot leaves and rejoins channel etc.) I might try this...
by sparc317
Tue Jan 29, 2008 2:54 pm
Forum: Modules & Programming
Topic: Log all bot messages (patch)
Replies: 13
Views: 49018

Hi,

Tried this patch but doesn't work for me. My bot just messages a channel (gets its input from a TCL script)

It logs all messages to the channel from other users, but not from itself.

Any ideas as would be nice for this to work?

Thanks
by sparc317
Tue Jan 29, 2008 9:27 am
Forum: Scripting Help
Topic: How to get a script to reload itself in eggdrop?
Replies: 8
Views: 10403

How to get a script to reload itself in eggdrop?

Hiya, I have a script that monitors a TCP connection and dumps it to a channel, all working great. However I would like to have a handler so that when the connection drops, it sleeps for a minute and then reloads the TCL script. Is there a way to do this, as at present I just call a shell script tha...
by sparc317
Wed Jan 23, 2008 5:12 pm
Forum: Scripting Help
Topic: strange variable printing problem
Replies: 3
Views: 2401

Cheers for the reply, really apprecitated. The output of putcmdlog when printing the contents just gives: [21:09] gsoutput ' So its missing even the last ' off the end. I've tried the removal of TCL special chars and newline as suggested but still no joy. What is even more bizarre, is if I fire up a...
by sparc317
Wed Jan 23, 2008 11:25 am
Forum: Scripting Help
Topic: strange variable printing problem
Replies: 3
Views: 2401

strange variable printing problem

Ok... managed to solve my sockets problem :D Used the awesome ::sock:: stuff that was posted here instead. I can't for the life of me work out why this isn't working though: # Handle output from the server and print chat messages to channel proc read_sock {sock} { set gsoutput [gets $sock] if {[stri...
by sparc317
Wed Jan 23, 2008 9:40 am
Forum: Scripting Help
Topic: Making a socket TCL script work with eggdrop
Replies: 3
Views: 5612

Making a socket TCL script work with eggdrop

Hi All, I would be very grateful if someone could point me in the right direction with something I'm a bit stuck on. I'll admit I'm a beginner TCL programmer, but have coded in various other languages before. Basically I have a TCL script that works fine if I run it outside of Eggdrop, however when ...