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 

Simple script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Nara
Halfop


Joined: 23 Jul 2006
Posts: 40

PostPosted: Sun Jun 03, 2007 8:58 pm    Post subject: Simple script Reply with quote

This script should be super easy. I have a hash table in the format of:
Code:
$file
#Explanation#: Returns information about the specified file. Its properties are size, ctime, mtime, atime, short, long, attr (type /help $file for more detail). #Example#: $file($mircexe).size returns 1867776 in version 6.12. $file($mircexe).atime returns the last access time.


# are bold codes. I need a way to read this data (by search for the first part, not the explanation) using a command in the eggdrop, as well as a way to add to the end of the file, using the same format shown above. The items beneath it are completely written by the user, without anything mandated by the bot.

EX: @help $file
RETURNS: putquick "PRIVMSG $chan :#Explanation#: Returns information about the specified file. Its properties are size, ctime, mtime, atime, short, long, attr (type /help $file for more detail). #Example#: $file($mircexe).size returns 1867776 in version 6.12. $file($mircexe).atime returns the last access time."

EX: @addhelp $help
RETURNS: Adds to file, and sends back: putquick "NOTICE $nick :Added $help to database."

If anyone can do this for me, I'll be most appreciative.

~Nara
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Jan 06, 2008 1:10 am    Post subject: Reply with quote

OK!

Nara wrote:
This script should be super easy.


Off you go then. Have fun! Smile

Guide to TCL scripting for Eggdrop 1.6
man/tcl8.4/TclCmd/
A beginners guide to TCL with focus on Eggdrop
Eggdrop Tcl Commands
How to write eggdrop scripts that won't choke on special characters
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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