BotServ Quotes
Wednesday, 20th June 2007 - 15:31 BSTWhat is BotServ Quotes?
BotServ quotes is a module for BotServ (part of Anope IRC Services) that adds a quote system via the channel bot. The module uses a MySQL database to store the quotes which allows you to add them to a web site, or even make a site specifically for the quotes in your database. It can be downloaded via the Anope module page.
Known limitations:
The main limitation to the module is that there is no concept of IRC channels and so the quotes can be deleted by anyone with services access to a channel with a BotServ bot in it. As the module was created for a single channel network this wasn't a problem but may change in the future or if there is any demand for channel support.
Commands
- !quote add <quote> - Adds a new quote.
- !quote del [#]id - Deletes the quote with id 'id'. The # is optional.
- !quote view [#]id - Views the quote with id 'id'. The # is optional.
- !quote get [#]id - Same as !quote view.
- !quote random - Views a random quote.
- !quote search <text> - Returns a list of ids containing 'text'.
- !quote count - Returns how many quotes are in the db.
Config options
- QuoteMySQLHost "sql.hostname" - The hostname for the MySQL server (for TCP connections).
- QuoteMySQLPort 3306 - The port for the MySQL server (for TCP connections).
- QuoteMySQLSocket "/tmp/mysql.sock" - The UNIX socket file for the MySQL server.
- QuoteMySQLUser "sql_user" - The username to use.
- QuoteMySQLPassword "pass" - The password for the specified username.
- QuoteMySQLDatabase "database" - The database to use for the quotes.
- QuoteEnableMultiLine - Enable multi-line support, disabled by default.