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 

Public Quotes System (current version: 1.32)
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Thu Sep 13, 2007 5:02 pm    Post subject: Public Quotes System (current version: 1.32) Reply with quote

 
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>
      To add a quote.
    !quote <quote number> [#chan]
      To display a quote.
    !quoteinfo <quote number> [#chan]
      To display some informations about a given quote.
    !delquote <quote number>
      To delete a quote.
    !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
View user's profile Send private message Visit poster's website
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Fri Sep 14, 2007 5:09 pm    Post subject: Reply with quote

 
*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
View user's profile Send private message Visit poster's website
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Fri Sep 14, 2007 6:20 pm    Post subject: Reply with quote

*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
View user's profile Send private message Visit poster's website
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Wed Sep 19, 2007 2:21 pm    Post subject: Reply with quote

 
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
View user's profile Send private message Visit poster's website
iNFERNiS
Voice


Joined: 21 Aug 2007
Posts: 13

PostPosted: Tue Oct 02, 2007 1:51 pm    Post subject: Reply with quote

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


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Tue Oct 02, 2007 2:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
iNFERNiS
Voice


Joined: 21 Aug 2007
Posts: 13

PostPosted: Tue Oct 02, 2007 3:37 pm    Post subject: Reply with quote

oh great, thanks!
Back to top
View user's profile Send private message
Stavr0s
Voice


Joined: 12 Mar 2007
Posts: 5
Location: Over Here!

PostPosted: Wed Oct 03, 2007 7:06 am    Post subject: Reply with quote

Great script just what i've been looking for Smile
Back to top
View user's profile Send private message Visit poster's website
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Wed Oct 17, 2007 7:55 pm    Post subject: Reply with quote

 
*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
View user's profile Send private message Visit poster's website
krieg
Voice


Joined: 20 Nov 2007
Posts: 13

PostPosted: Tue Nov 20, 2007 11:24 am    Post subject: Reply with quote

How can I run it? Can you explain with detailed?
Back to top
View user's profile Send private message
BeBoo
Halfop


Joined: 26 Sep 2007
Posts: 42

PostPosted: Tue Nov 20, 2007 2:05 pm    Post subject: Reply with quote

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


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Tue Nov 20, 2007 4:20 pm    Post subject: Reply with quote

@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
View user's profile Send private message Visit poster's website
isak
Voice


Joined: 09 Dec 2007
Posts: 1

PostPosted: Sun Dec 09, 2007 2:17 pm    Post subject: Reply with quote

is it possible to somehow add multi-line quotes ?
Back to top
View user's profile Send private message
MenzAgitat
Op


Joined: 04 Jul 2006
Posts: 118
Location: France

PostPosted: Mon Dec 10, 2007 1:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
BrewMaster
Voice


Joined: 07 Jul 2007
Posts: 34

PostPosted: Tue Jan 01, 2008 11:22 am    Post subject: Reply with quote

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
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
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
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