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 

Announce: Quotes-2112

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Nov 14, 2006 1:13 am    Post subject: Announce: Quotes-2112 Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Nov 18, 2006 4:31 am    Post subject: v0.01g update Reply with quote

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
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Sat Nov 18, 2006 8:17 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Nov 18, 2006 3:50 pm    Post subject: v0.01h Reply with quote

- Added an array to the search function to show the quote's number from the name/category.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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