Commit Graph

30 Commits

Author SHA1 Message Date
Krytarik Raido e3614f3256 Encyclopedia: Fix regression in web page. 2021-06-14 01:56:04 +02:00
Krytarik Raido db29965a33 Encyclopedia: Rework message parsing. 2021-06-14 01:56:04 +02:00
Krytarik Raido 902534d10b Encyclopedia: Various improvements on aliases.
* Make 'delete' work on aliases without prior 'unforget' of target.
* Also show forgotten aliases in factoid info.
* Also hide forgotten aliases from web page unless searched.
* Improve handling of alias edits.
* Check for aliases on 'forget' and 'delete'
2021-06-14 01:56:04 +02:00
Krytarik Raido 987b3c91fa PackageInfo: Add 'releases' command to list all valid releases.
* Instead no longer include those in error message on invalid releases.
* But add setting to send list of valid releases in private on error.
* Minor fixes to Encyclopedia along the way.
* Update default configuration.
2021-06-13 00:23:04 +02:00
Krytarik Raido b4c25ad7e2 Encyclopedia: Minor improvements to config.py 2021-06-12 12:34:04 +02:00
Krytarik Raido 95f8fabc59 Encyclopedia: Guard against mistakes. 2021-05-26 03:45:04 +02:00
Krytarik Raido 8ffed09aef Encyclopedia: Various improvements.
* Improve handling of aliases.
* Make 'delete' work without prior 'unforget'
* Fix issue of passing empty commands to bot just to allow
  multi-message output (about to be fixed by pending upstream change)
2021-04-22 21:13:04 +02:00
Krytarik Raido 34203f7b11 Encyclopedia: Update Python shebangs. 2021-01-28 05:04:04 +01:00
Krytarik Raido b4cde99a4d Encyclopedia: Fix XSS vulnerability (LP: #1832773) 2021-01-28 04:04:04 +01:00
Krytarik Raido 3596ab6692 Encyclopedia: Improve previous commit. 2020-12-10 19:23:04 +01:00
Krytarik Raido 34be030c26 Various: Switch from 'imp' module to 'importlib'
* Bugtracker
* Encyclopedia
* PackageInfo
2020-12-10 04:50:04 +01:00
Krytarik Raido 1284f0c157 Encyclopedia: Refactor handling of being addressed. 2020-11-06 05:34:04 +01:00
Krytarik Raido 95c8c5e9f7 Various: Mirror changes to checkIgnored() function.
* Bugtracker
* Encyclopedia
* PackageInfo
2020-10-26 01:23:04 +01:00
Krytarik Raido ed35f240fd Various: Fix output redirection.
* Encyclopedia
* PackageInfo
2020-10-24 05:04:04 +02:00
Krytarik Raido 32f2c9ac3f Various: Follow upstream bot development.
Specifically, use msg.channel and make network-aware where easily possible.

* Bugtracker
* Encyclopedia
* PackageInfo
2020-10-23 06:23:04 +02:00
Krytarik Raido fdbaa3fc36 Encyclopedia: Fix addressing on replies. 2020-10-19 22:04:04 +02:00
Krytarik Raido 0cfbaa834e Encyclopedia: Restructure databases.
* Add database conversion script.
2018-05-22 00:45:04 +02:00
Krytarik Raido 3368b2d6fe Encyclopedia: General overhaul.
* Improve input handling.
* Enable multi-message output.
* Improve request logging.
* Add real delete function.
* Improve factoid web page.
* Extend factoid info output.
* Count calls of aliases towards
  their own popularity.
* Show info on deleted factoids too.
* Improve factoid search algorithm.
* Sort factoid search by popularity.
* Improve command name structure.
* Various other and minor improvements.
* Update default configuration.
2018-05-22 00:45:04 +02:00
Krytarik Raido 669293de1e Encyclopedia: Add Python 3 support. 2018-05-16 23:45:04 +02:00
Krytarik Raido b18cc37a15 Encyclopedia: Port to SQLite 3 (with Matt Wheeler) 2018-05-16 23:45:04 +02:00
Terence Simpson ad7a493262 Update copyright/license/author/contributors information
Make sure all files have encoding set to utf-8 unless they already have an encoding
Added COPYING with contense of GPL-2
Added plugin name prefix to all log output. This should take the form of self.log.severity("Plugin: message"),
when not logging from plugin.py use: "Plugin/file_without_dot_py: message"
Bantracker: Made the confgure() function do something, it also creates an initial database if it doesn't exist
Encyclopedia: Made the configure() function do something, it also creates an initial database if it doesn't exist
PackageInfo: Improve the configure() function, it also now creates some initial .list files and prompts to run update_apt and update_apt_file
This goes some way to getting an "ubottu" package together, all we need to do is patch supybot-wizard to download the plugins
from bzr and put them somewhere supybot will see them, then the wizard will do all the initial setup
2010-05-24 14:38:06 +01:00
Terence Simpson 562b0faf0f Update author/version/url info 2009-11-26 16:39:34 +00:00
Terence Simpson 885ad30ded Added PackageInfo plugin.
Moved package info/lookup to PackageInfo plugin
2008-10-22 18:31:40 +01:00
Terence Simpson 398938dbcd Bantracker timezone defaults to UTC
Encyclopedia:
  calling @sync reloads the plugin after successfully downloading the new database
  allert command and relay channel and configurable per-channel
  (LoCo channels can set the relay to #ubuntu-irc if they want)
  Adding an alias without first creating a dummy factoid should be fixed
2008-05-10 16:13:26 +01:00
Terence Simpson 393b3521f5 Tweaks and modifications.
Bantracker:
  Make the bantracker URL configurable from the bot
  Make sure all the html links are relative
Encyclopedia:
  Handle the possibility of apt-file not being installed
  Handle the possibility of the apt-file cache not being created
  Add sync command to sync with a remote database
  Make sure all the html links are relative
Mess:
  Take out the hard-coded paths, use the config variables to find the plugin dir
2008-05-05 12:34:57 +01:00
Dennis Kaarsemaker 5ab56888fe I'm blue dabadee..... 2007-10-02 23:06:14 +02:00
Dennis Kaarsemaker f3ffcabca9 Encyclopedia made neat. 2007-02-04 18:35:40 +01:00
Dennis Kaarsemaker 9a1d60918f Add search, make encyclopedia more general, misc fixes 2006-09-28 14:35:24 +02:00
Dennis Kaarsemaker a6c65ce683 * Completely rewritten encyclopedia plugin
* Throttle bugreports, report new bugs
* Add Bruce Schneier quotes
* Bantracker stores prefixes for /remove
* Bantrackerwebinterface can change passwords
* Misc. fixes
2006-08-19 01:22:54 +02:00
Dennis Kaarsemaker aea38c93ff Initial checkin 2006-06-26 19:57:20 +02:00