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.

Simple script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
N
Nara
Halfop
Posts: 40
Joined: Sun Jul 23, 2006 11:12 pm

Simple script

Post by Nara »

This script should be super easy. I have a hash table in the format of:

Code: Select all

$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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply