thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
The creator of these plugins has not shown activity in a while. Posting in this board may not result in a fast reply or a reply at all. [ Read the full Support Disclaimer here ]
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Chatlogger Quoter  (Read 4689 times)

Offline grosbedo

  • Moderator
  • Sr. Member
  • *
  • Posts: 258
Chatlogger Quoter
« on: August 17, 2010, 03:38:26 PM »
Chatlogger Quoter v0.4.0 (2010-08-21)

Download
Primary : http://www.bigbrotherbot.net/forums/downloads/?sa=view;down=79

Description

This plugin is a companion for the Chatlogger plugin by Courgette.
It takes a random quote and say it, either automatically at the defined frequency, or when user issue a !randomquote or !quote.
You can define a list of words to filter, so quotes containing these words won't be said. You can too avoid quoting censored words you defined in your censor plugin config file.

Useage
Use !quote or !randomquote to show a random quote, or wait for the automatic quoter to say a line.

Changelog
Code: [Select]
17/08/2010 - 0.3.0 - GrosBedo
 * !randomquote : say a random quote from the log
 * auto random quote : say a random quote automatically at an interval
 * can customize the quote string format from config
 * filters censored words from random quote (with censor plugin and config)
 * Words filter : can set a list of words to filter from quoting

17/08/2010 - 0.3.1 - GrosBedo
 * separated this plugin from chatlogger
 * fixed a bug in the auto talk frequency
 * added more sample words filter regexp
 * added minlength and maxlength for quotes to be said
 * enhanced random algorithm a lot, now uses sql (so there can't be a void line returned)

20/08/2010 - 0.3.2 - GrosBedo
 * clean the quotes and strip colors before checking for badwords
 * added more regexps

21/08/2010 - 0.4.0 - GrosBedo
 * optimized the algo some more, only one access to the db now
 * fixed a bug in badwords detection
 * avoid duplicates - can now detect and avoid binds (automatic chatlines some people bind to a key)

Chatlogger Quoter has been tested on Chatlogger v0.2.0 and v0.3.1, it may or not work with other versions.

[attachment deleted by maintenance]
« Last Edit: August 21, 2010, 07:21:50 PM by grosbedo »

Offline grosbedo

  • Moderator
  • Sr. Member
  • *
  • Posts: 258
Re: Chatlogger Quoter
« Reply #1 on: August 19, 2010, 01:01:05 PM »
My custom words filter :

Code: xml [Select]
	<!-- Words filter : can either be used to avoid logging chat lines, and/or avoid saying quotes containing those words -->
<wordsfilter>
<word name="b3commandsfilter">
<!-- As you can see we here filter any line containing a command -->
<comment>Filters b3 commands</comment>
<regexp>![a-z]</regexp>
</word>
<word name="gg">
<regexp>^(gj|gg|goodgame)\s*[!?]*</regexp>
</word>
<word name="lol">
<regexp>^(lol)((l)?(ol))*</regexp>
</word>
<word name="smileys">
<regexp>^\W*(:|X|=)(')?(-|=)?(\(|\)|D|p)+</regexp>
</word>
<word name="hello">
<regexp>\sh[eoa]*[ij]\s|\sh[ea]+l+o+\s|\sheej?\s|\se+j\s</regexp>
</word>
<word name="bye">
<regexp>((good)?b(b|ye)|cya|seey(ou|a))</regexp>
</word>
<word name="hahaha">
<regexp>^((h|j)(a|e|i|o|u))+|((a|e|i|o|u)(h|j)?)+$</regexp>
</word>
<word name="ok">
<regexp>^(fine|ok|good|well|sure|true|yes|no|ty|thankyou)$</regexp>
</word>
<word name="team and vote">
<comment>Filters the automatic game commands about vote and team that get said by error at the end of match</comment>
<regexp>(team|vote)\s*(yes|no|blue|red|spectator|spec|0|1|2)</regexp>
</word>
<word name="camper">
<!-- Even if some remarks about campers can be funny, most are annoying complaints, and we can get so many other much more interesting quotes that it's better to rule these ones out -->
<comment>Avoid camping complaints</comment>
<regexp>((camp)|(camper)|(camping)|(flagcamp)|(flagcamper)|(flagcamping))</regexp>
</word>
<word name="lag">
<comment>Avoid lags complaints</comment>
<regexp>(^ |re|[^du][^enf])((la[g]+[s]*)|(lagin)|(laggin)|(lagging)|(lagger)|(connection))</regexp>
</word>
</wordsfilter>

Offline grosbedo

  • Moderator
  • Sr. Member
  • *
  • Posts: 258
Re: Chatlogger Quoter
« Reply #2 on: August 21, 2010, 11:03:37 AM »
New version : v0.3.2, which cleanup the quotes prior to check for bad words (ie: before, coloured smileys would be quoted, now they won't).

Offline grosbedo

  • Moderator
  • Sr. Member
  • *
  • Posts: 258
Re: Chatlogger Quoter
« Reply #3 on: August 21, 2010, 07:24:05 PM »
Major update : v0.4.0

Changelog
Code: [Select]
21/08/2010 - 0.4.0 - GrosBedo
 * optimized the algo some more, only one access to the db now
 * fixed a bug in badwords detection
 * avoid duplicates - can now detect and avoid binds (automatic chatlines some people bind to a key)

This is probably the last version Ill do of this plugin, I find now the quotes very pertinent and can't see what I could add.

 


Rate this page +1 at Google Search

anything