| View previous topic :: View next topic |
| Author |
Message |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Nov 14, 2006 1:13 am Post subject: Announce: Quotes-2112 |
|
|
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 |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Nov 18, 2006 4:31 am Post subject: v0.01g update |
|
|
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. |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Sat Nov 18, 2006 8:17 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Nov 18, 2006 3:50 pm Post subject: v0.01h |
|
|
| - Added an array to the search function to show the quote's number from the name/category. |
|
| Back to top |
|
 |
|