jamesoff.net




1

QuoteEngine

The QuoteEngine is a IRC quote database script for eggdrop which interfaces with mySQL to store the quotes. It supports multiple channels and easy-to-manage permissions. It also has a web interface for browsing the quotes.

Use !quotehelp in a channel the script is active in to get help.

Please note: A previous version of this script was vulerable to SQL injection (oops) and it should now be all fixed; however as a best practice you should ALWAYS run Internet-facing applications in their own database and only give their user permissions for that database.

Download: QuoteEngine 1.2.0

Bugs, development version etc: Trac

Use

For installation instructions please see the README file.

These instructions assume you’ve got it installed and working.

Basic commands

!addquote AN AMUSING QUOTE
Adds the amusing quote to the database. The bot replies with the quote ID if it was successful.
!getquote ID
Fetches the quote from the database, and says who added it, when and on which channel.
!randquote
Fetches a single random quote from the database for the channel.
Add --all to pick a random quote from any channel.

More advanced

!findquote TEXT
Searches the database for quotes containing TEXT. Results are returned in random order. By default only 5 are given in the channel.
Add --all to search all channels, otherwise results just come from the channel the command is issued in.
!quoteurl
Gives you the URL where you can browse quotes online (if available).
!delquote ID
Deletes quote ID from the database. You can only delete if you’re the person who added it, or if you’re a bot/channel master in eggdrop.
!quoteversion
Gives the version of the script.
!quotehelp
Spews a load of help text to you in a query.

One comment on “QuoteEngine”

  1. Posted by kbc (Permalink)

    Hi, i’ve your tcl here on my system, i use it, but i found a bug or somthing like, when i’m try to change the channel over the php script, that i can see every other qoute from the other chans, it woun’t work - so to get the php script to work i’ve to add $channel = $_GET['channel']; to index.php and it works fine sorry about my bad english …

    have a nice day kbc ;)



Add a comment