Irssi
Irssi Quotes System v1.2
Commands:
- !quote [id] - Shows the quote with that id, or a random quote if none is used.
- !search <string> - Searches for *string* - SQL-style wildcards.
- !whoset <id> - Shows the author of the quote under that id.
- !addquote <text> - Adds a quote in the database.
- !db - Prints number of non-deleted quotes in the database.
- /delquote <id> - Deletes a quote (actually it just marks the quote as deleted, nobody will be able to see it unless you restore it)
- /restore <id> - Restores a quote.
In order to install the irssi quotes system you have to do the following:
- Download http://mitko.com.mk/irssi_quotes.sql
- Execute it: mysql -p yourdbname < irssi_quotes.sql
- Go to your Irssi scripts directory, normally it is ~/.irssi/scripts/
- Download http://mitko.com.mk/irssi_quotes.pl-file
- Open irssi_quotes.pl-file with your favorite text editor and edit these variables:
$database = ('yourdbname');
$username = ('dbuser');
$password = ('dbpass');
$username = ('dbuser');
$password = ('dbpass');
- By default only ops can add quotes, in order to change that edit this:
$addqlevel = ('1');
# 1 - only +o users can add quotes
# 2 - only +o and +v users can add quotes
# 3 - everyone can add quotes
# 1 - only +o users can add quotes
# 2 - only +o and +v users can add quotes
# 3 - everyone can add quotes
- Save it as irssi_quotes.pl
- In your Irssi client type: /script load irssi_quotes.pl
That's it! If you want the script to be loaded automatically at startup, put irssi_quotes.pl in the ~/.irssi/scripts/autorun/ directory. If the directory doesn't exist, create it. If you have problems or you find bugs feel free to contact me via my Contact page, or on irc.undernet.org (my nickname is Mitko).