| View previous topic :: View next topic |
| Author |
Message |
doggo Halfop
Joined: 05 Jan 2010 Posts: 97
|
Posted: Thu Feb 14, 2013 4:27 pm Post subject: Help Required |
|
|
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 _________________ NON geeky!! http://gotcode4u.com/ |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Feb 14, 2013 5:00 pm Post subject: |
|
|
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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
doggo Halfop
Joined: 05 Jan 2010 Posts: 97
|
Posted: Thu Feb 14, 2013 5:14 pm Post subject: |
|
|
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
[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! _________________ NON geeky!! http://gotcode4u.com/ |
|
| Back to top |
|
 |
Yourname Master

Joined: 24 Sep 2001 Posts: 358 Location: Toronto
|
Posted: Thu Jun 13, 2013 4:04 am Post subject: |
|
|
Check help on .tcl _________________ Dormant egghead. |
|
| Back to top |
|
 |
|