Nara Halfop
Joined: 23 Jul 2006 Posts: 40
|
Posted: Sun Jun 03, 2007 8:58 pm Post subject: Simple script |
|
|
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 |
|