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.

Announce: Quotes-2112

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Announce: Quotes-2112

Post by rosc2112 »

I had a request to make a quotes script, and upon looking at the many other quote scripts which lacked desired features and had the sillyest bugs (such as not even handling tcl-special chars properly) I decided to write my own from scratch.

Here is a partial feature list:

Purpose: Stores quotes from users and shows them on command.
Features:
Users can save/delete their own quotes.
Configurable permissions for adding/deleting quotes for other people or categories.
Configurable number of quotes to save (users and "categories" have seperate limits.)
Configurable command prefix, PRIVMSG/NOTICE, etc.
Logs adding/deleting quotes/categories into a "quotelog" section of the datafile.
Special "any" category for general, unlimited number of quotes.
Command to create/delete "categories" for quotes (deletes all quotes for category as well).
Command to list all "categories" by name.
Command to show quote from yourself by number or at random.
Command to show quote from username or category by number or at random.
Command to show quote randomly from entire datafile.
Command to show quote randomly from the "any" category.
Command to show all quotes for username or category (in privmsg).
Command to show all of your own quotes (in privmsg).
Command to search quote datafile by keywords/text string (results shown in privmsg).
Command to show statistics for all quotes in the datafile (total number of quotes, users/quotes, etc.)
Command to show the quotelog data (to those with permissions).
Quotes within a user's or category's saved quotes are automatically renumbered when one line is deleted.
Properly handles all tcl-special chars, so quotes can contain ANY input.

I'll wait a few days for testing before uploading to the archive. Script is available here:
http://members.dandy.net/~fbn/quotes2112.tcl.txt
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

v0.01g update

Post by rosc2112 »

Nov 14 2006 Changes:

- Fixed stats showing the "any" category under "Users."
- Made permission configs both global and channel (channel flags will not work in privmsg,
only when commands are typed in channel.)
- Added [nick2hand] to the quotelog lines, just to have the handle for the person..
- Tweaked stats format a bit.
- Made searches/string matches case-insensitive.
- Added more verbose error msgs.
- Added a total to the msg when saving a new quote (shows quotenumber/total-allowed)
- Made config file a seperate file (requested by Dianora)

Script is available from the same url as above.

You can download the default config file from:
http://members.dandy.net/~fbn/quotes2112.cfg.txt

Uploaded a tarball to the archive as well.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

I think your script would be alot easier to read if you didn't tab it so much, 2 spaces is enough.

Other than that, I'm sure it works quite nicely :)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

v0.01h

Post by rosc2112 »

- Added an array to the search function to show the quote's number from the name/category.
Post Reply