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.

Help Required

General support and discussion of Eggdrop bots.
Post Reply
d
doggo
Halfop
Posts: 97
Joined: Tue Jan 05, 2010 7:53 am
Contact:

Help Required

Post by doggo »

is there a way to dump a script to a file from the bots memory?

was editing a script remotely and has a power outage, logged back into the shell to check the file and its blank :(


all the procs are still working on the bot because i have restarted or rehashed, is there anything i can do??



please help ill love you forever if i can get it back
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

You could always use the info tcl command to retrieve the argument list and body of any proc. You can also use it to get a list of procs currently in memory. The binds command would return any bindings currently registered in your eggdrop.

If you've enabled the .tcl or .set command, you could use these commands directly from dcc chat. Otherwise, you'd have to be a bit creative, writing a script to gather all the information for you and writing it down to a file of your choosing. This could then be added to your eggdrop's config file, and loaded using .rehash (not .restart however, that would wipe the current tcl interpreter and your script along with it).
NML_375
d
doggo
Halfop
Posts: 97
Joined: Tue Jan 05, 2010 7:53 am
Contact:

Post by doggo »

Thanks nml375, after making the post here i joined #egghelp on the efnet :)
was given similar advice, and managed get it all the bodys of the procs back :D


[05:54pm] <John13> doggo, depends
[05:54pm] <John13> it's not easy, but [info body] is your friend
[05:55pm] <John13> ohh, and .binds
[07:55pm] <doggo> plz explain a lil more pls John13 :))
[08:38pm] <John13> .tcl info body someproc
[08:38pm] <John13> I did not say that it is easy, but it is possible

John13 your a star!
User avatar
Yourname
Master
Posts: 358
Joined: Mon Sep 24, 2001 8:00 pm
Location: Toronto

Post by Yourname »

Check help on .tcl
Dormant egghead.
Post Reply