| View previous topic :: View next topic |
| Author |
Message |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Thu Sep 13, 2007 5:02 pm Post subject: Public Quotes System (current version: 1.32) |
|
|
This pack includes a french version AND an english version.
Ce pack inclut une version française ET une version anglaise (aide en français dans le script vf)
Short description:
Adds the following public commands : !quote !addquote !lastquote !randquote !findquote !quoteinfo !delquote (and a few other admin commands). Many features (automatic daily backup, antiflood, full multichannel support, ...).
Full Description:
This script adds the following commands:!addquote <quote>
!quote <quote number> [#chan]
!quoteinfo <quote number> [#chan]
To display some informations about a given quote. !delquote <quote number>
!randquote [#chan]
To display a random quote. !lastquote [#chan]
To display the last quote. !findquote [-all/#chan] <search argument(s)>
To look for a quote.
Put some quotation marks around your search arguments to look for an exact match.
Use the -all option to do a global search in every channel's databases OR specify a chan. !deletedquoteinfo <quote number>
To display some informations about a deleted quote (admin command) !undelquote <quote number>
To restore a deleted quote (admin command) !forcedelquote <quote number>
To delete a quote, even if you are not its author. (admin command) !cancelquote <latest quote number>
To cancel the latest stored quote (Does not leave any remains in the database). (admin command)
No need to say that !forcedelquote and !cancelquote commands must be used ethically, for maintenance purposes or in order to face users misuse of the commands.
A directory named quotes.db will be created in the eggdrop's directory; it contains the quotes databases.
Features:- Full multichannel support; local or global searches with the !findquote command; you can specify a chan's name for most of the public commands.
- Automatic daily backup
- Individual flood protection (per command)
- Global flood protection (all commands)
Until the script is added to the Tcl Archive, you can download it from here : Public Quotes System v1.32 english/french
Leave comments / bug reports here.
Last edited by MenzAgitat on Wed May 13, 2009 6:52 am; edited 5 times in total |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Fri Sep 14, 2007 5:09 pm Post subject: |
|
|
*v1.21
Thanks to Stock who signaled it to me, I just fixed a bug that prevented the english version from compiling successfully and crashed the eggdrop (damn last minute changes).
The french version does not have that issue and the latest french version remains v1.2.
A working link with the latest fixed version can be found in the 1st message of this thread.
Sorry for that. |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Fri Sep 14, 2007 6:20 pm Post subject: |
|
|
*v1.22
OMG just fixed a minor bug that occured in the log message when backing up databases once a day.
Imagine a script that works like a charm for 2 months, I submit it for the first time on a website and bugs start immediatly to appear everywhere... |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Wed Sep 19, 2007 2:21 pm Post subject: |
|
|
To those who have errors like that :
| Quote: | | bad search mode "-all": must be -exact, -glob, or -regexp |
please ensure you are using Tcl v8.4 of newer (or windrop 1.6.18).
(I should have inserted a line like "package require Tcl 8.4" but since I forgot and am too lazy to make an update for that, just take care.) |
|
| Back to top |
|
 |
iNFERNiS Voice
Joined: 21 Aug 2007 Posts: 13
|
Posted: Tue Oct 02, 2007 1:51 pm Post subject: |
|
|
| Looks great. Would it be possible to add flags to it so you can specify who's allowed to add and delete quotes. Would be perfect if it had that. |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Tue Oct 02, 2007 2:48 pm Post subject: |
|
|
Search for the following lines :
| Code: | bind pub -|- "!addquote" pubqsys::addquote
bind pub -|- "!delquote" pubqsys::delquote
unbind pub -|- "!addquote" pubqsys::addquote
unbind pub -|- "!delquote" pubqsys::delquote |
Replace -|- by the flags you want (global flag | channel flag)
eg.: to allow only channel operators and global owners to add quotes, modify like this :
| Code: | bind pub n|o "!addquote" pubqsys::addquote
unbind pub n|o "!addquote" pubqsys::addquote |
|
|
| Back to top |
|
 |
iNFERNiS Voice
Joined: 21 Aug 2007 Posts: 13
|
Posted: Tue Oct 02, 2007 3:37 pm Post subject: |
|
|
| oh great, thanks! |
|
| Back to top |
|
 |
Stavr0s Voice
Joined: 12 Mar 2007 Posts: 5 Location: Over Here!
|
Posted: Wed Oct 03, 2007 7:06 am Post subject: |
|
|
Great script just what i've been looking for  |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Wed Oct 17, 2007 7:55 pm Post subject: |
|
|
*v1.3- some visual enhancements
- fixed a bug with !findquote : pipe character was erroneously forbidden.
- added !cancelquote command, which allows an administrator to cancel the last recorded quote.
- added new adjustable parameters.
As always, a working link with the latest version can be found in the 1st message of this thread. |
|
| Back to top |
|
 |
krieg Voice
Joined: 20 Nov 2007 Posts: 13
|
Posted: Tue Nov 20, 2007 11:24 am Post subject: |
|
|
| How can I run it? Can you explain with detailed? |
|
| Back to top |
|
 |
BeBoo Halfop
Joined: 26 Sep 2007 Posts: 42
|
Posted: Tue Nov 20, 2007 2:05 pm Post subject: |
|
|
I have a feature request and a question...
First the feature request -
Maybe have a command, say !quotestats that will list out the number of quotes total for that channel and who the last person was to save a quote.
Question-
I wanted to modify the quotes file to get rid of the times and the modes of the users who were quoted and when I did that, the file got overwritten (i guess by the backup). I tried changing it and copying the file to the .bak file and it still got overwritten. Is there a file somewhere else I would need to edit?
Thanks! |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Tue Nov 20, 2007 4:20 pm Post subject: |
|
|
@Krieg > You must edit the settings section inside the script and at least specify on which channel(s) you want it to work on.
For a detailed explanation about each command, see the description section inside the script of read the first post of this thread.
If you still have problems, please be more accurate describing the exact issue.
@Beboo > I'm not sure to understand what you did, so I will explain you some things, hoping it will help you.
The quotes database shouldn't be tampered with, all maintenance operations can be done with the commands (like !delquote !forcedelquote !cancelquote ....). If you modify the database structure, it won't work anymore so if you tried to remove informations from it (like times), you just broke it.
Once a day, a backup of the database is made (the file is copied to .bak) to ensure you won't loose anything in case of file corruption for example. If you want to manually make a backup and don't want it to be overwritten by the daily auto backup, dont just add .bak to the file name.
Like I just said to Krieg, if my answer doesn't help you, please be accurate describing what you exactly did in the quotes database file, and step by step, what happend then.
About the stats feature, it's been added to my todo list. |
|
| Back to top |
|
 |
isak Voice
Joined: 09 Dec 2007 Posts: 1
|
Posted: Sun Dec 09, 2007 2:17 pm Post subject: |
|
|
| is it possible to somehow add multi-line quotes ? |
|
| Back to top |
|
 |
MenzAgitat Op

Joined: 04 Jul 2006 Posts: 118 Location: France
|
Posted: Mon Dec 10, 2007 1:10 pm Post subject: |
|
|
Theorically it would be possible, putting a marker at the end of the quote like that :
| Quote: | <nick> !addquote whateverwhateverwhatever
<nick> whateverwhatever
<nick> whateverwhateverwhateverwhatever
<nick> whatever*marker* |
but it would be heavy to manage and people would probably never think to add it.
So, I won't add support for multi-line quotes. |
|
| Back to top |
|
 |
BrewMaster Voice
Joined: 07 Jul 2007 Posts: 34
|
Posted: Tue Jan 01, 2008 11:22 am Post subject: |
|
|
Nice Script works well!
I have always found quotes more enjoyable when played 3 or so at a time. Can you add a trigger to play more than one quote back at a time?
triggered command like !playquotes 3. This would make the script display 3 random quotes. The number of quotes to play back could be user defined.
I also relay like the idea from BeBoo, to have quote stats(most quoted nick, ect). Just some ideas for you. Thanks,
brew |
|
| Back to top |
|
 |
|