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 

Help Required

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
doggo
Halfop


Joined: 05 Jan 2010
Posts: 97

PostPosted: Thu Feb 14, 2013 4:27 pm    Post subject: Help Required Reply with quote

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 Sad


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
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Feb 14, 2013 5:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
doggo
Halfop


Joined: 05 Jan 2010
Posts: 97

PostPosted: Thu Feb 14, 2013 5:14 pm    Post subject: Reply with quote

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


[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 Smile)
[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
View user's profile Send private message Visit poster's website
Yourname
Master


Joined: 24 Sep 2001
Posts: 358
Location: Toronto

PostPosted: Thu Jun 13, 2013 4:04 am    Post subject: Reply with quote

Check help on .tcl
_________________
Dormant egghead.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
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