Commit Graph

105 Commits

Author SHA1 Message Date
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 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 3596ab6692 Encyclopedia: Improve previous commit. 2020-12-10 19:23: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 18b4fe831a Various: Avoid error when msg.prefix is from services.
* Bugtracker
* Encyclopedia
* PackageInfo
2020-10-19 20:56:04 +02:00
Krytarik Raido 182cc59009 Bugtracker: Various improvements.
* Add option to set aliases on trackers.
* Complete removal and renaming of trackers.
* Only load default trackers if none set yet.
* Improve handling of auto-discovered trackers.
* Add function to reset trackers to defaults.
* Minor fix to Encyclopedia along the way.
2019-07-08 02:45:04 +02:00
Krytarik Raido aec19ef265 Various: Work around msg.args in inFilter() potentially being empty...
...in Limnoria running on Python 3

* Bugtracker
* Encyclopedia
* PackageInfo
2019-05-31 06:50:04 +02:00
Krytarik Raido d72081d106 Various: Work around msg.prefix in inFilter() potentially being empty...
...in Limnoria running on Python 3, particularly on startup.

* Bugtracker
* Encyclopedia
* PackageInfo
2018-05-22 00:45: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 cc540f7c54 Make Encyclopedia enforce supybot.plugins.Encycopedia.enabled setting 2014-06-02 02:24:20 +01:00
tsimpson de68b62ce1 Actually commit the right commit this time 2013-08-09 12:52:22 +01:00
tsimpson 9825c45ba7 Don't queue certain messages, like alert and edit responses, to avoid false flood protection on them. 2013-08-09 12:16:38 +01:00
tsimpson fcbe5e92ec Fix an issue where creating factoids that contain '>' or '|' could be eithe fail, or be interpreted as a redirection 2012-05-10 13:43:25 +01:00
Elián Hanisch 2f5ae3eca8 suggesting a factoid forced a limit of 14 chars in factoid's name.
This caused problems with channel specific factoids, now the limit is 35.
2011-10-24 14:34:17 -03:00
Terence Simpson a7f415defd And I suck at typing 2011-08-04 13:37:23 +01:00
Terence Simpson 120035a5c1 $nick apparently was ubottu-specific, now it's in bzr
Also added $who which will be replaced with the callers nick
2011-08-04 13:30:34 +01:00
Elián Hanisch 4eeb6ddc7f fix Encyclopedia testcases. 2011-08-03 18:33:46 -03:00
Terence Simpson fd36bffcc0 (large commit, see bazaar log)
[Bantracker]
 * Less spaces in README.txt
 * Remove mention of table 'users' in README.txt
 * Add more detail on how to create the bans database in README.txt
 * Add note about supybot-wizard creating the initial database in README.txt
 * Don't hard-code default values in config.py:configure()
 * Tweak config.py
 * Clean up bans.cgi a bit

[Bugtracker]
 * Comment-out obsolete "bug reporting" variables in config.py
 * Update README.txt and remove "bug reporting" stuff, also remove extraneous license info
 * Comment-out obsolete "bug reporting" code
 * Don't import imaplib

[Encyclopedia]
 * Don't hard-code default values in config.py:configure()
 * Check for 'owner' capability before checking if the hostmask is ignored in plugin.py:checkIgnored()
 * Clean up README.txt

[PackageInfo]
 * Don't hard-code default values in config.py:configure()
 * Update default distributions in config.py:configure()
 * Update defaultRelease in config.py 
 * Update README.txt

* Add a few docstrings to commoncgi.py
* Update COPYING
* Update README.txt
2011-05-28 07:33:21 +01:00
Andrea Corbellini a6f91c2dad Pass prefixNick=True. 2011-05-09 14:20:39 +02:00
Andrea Corbellini ad21468aec When a user tries to speak with the bot, reply to him, so the message doesn't get lost. 2011-05-08 18:27:51 +02:00
Elián Hanisch 0d5c8e00cf fix typo: "delated" -> "deleted" 2011-03-24 19:55:50 -03:00
Terence Simpson 06813cf920 Also don't resolve aliases in raw mode 2011-03-21 09:54:31 +00:00
Terence Simpson ea6e9a4fe4 Include deleted factoids in 'raw' mode 2011-03-21 09:16:53 +00:00
Terence Simpson 8e1ff7fe95 Don't override "!google", only "!google ..." 2011-02-12 15:47:54 +00:00
Terence Simpson edf17bfbb5 Add a static-factoid for !google, also make sure supybot.plugins.Encyclopedia.ignores can override the other static-factoids.
++inline-doc
2011-02-01 07:33:52 +00:00
Terence Simpson b6adc54a42 Added the '+' modifier to display raw factoids 2011-01-26 18:44:31 +00:00
Elián Hanisch 046b3a5b43 fix previous commit: actually only allow edits in #ubuntu-ops if the user
has 'restricted-editor' capability.
2010-12-12 14:11:10 -03:00
Elián Hanisch 6a07f0bdff allow unauthorised edits if they made in #ubuntu-ops. 2010-12-12 13:33:52 -03:00
Elián Hanisch 58a38c8aff fix, parts without a message raised an exception. 2010-10-16 12:15:56 -03:00
Elián Hanisch b583933e5e allow multiple factoids in kick/remove reason 2010-10-16 11:55:02 -03:00
Elián Hanisch a6583efc83 If a user is removed with a reason that includes a factoid, show the
factoid in private. (LP: #210769)
2010-10-16 01:20:53 -03:00
Elián Hanisch 5024069d33 now really don't warn in -ops 2010-06-30 13:38:14 -03:00
Elián Hanisch 9c990ac7e6 fix condition, don't warn ops for every factoid. 2010-06-30 13:32:17 -03:00
Elián Hanisch cbffa3a1c6 ignore factoid requests when user prefix urls in them. 2010-06-30 13:06:58 -03:00
Terence Simpson 7a1dc5c616 Reply when a factoid is requested in /msg 2010-06-09 15:07:52 +01: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
Elián Hanisch 95618780f4 syncing for the first time fails because it tries to backup a file that
doesn't exist yet. Since there's nothing to backup, ignore this error and continue.
2010-05-17 10:46:35 -03:00
Terence Simpson b355b89f4a And the rest 2010-02-04 19:01:11 +00:00
Terence Simpson 5da62db6b0 add missing ')' 2009-11-22 22:44:07 +00:00
Terence Simpson 2aa2031d86 Add new value substitution code missing from last import from ubottu 2009-11-22 22:32:40 +00:00
Terence Simpson 24a8f2041f Add 'privateNotFound' channel config option to Encyclopedia, if set to True the bot will /msg the 'notfoundmsg' rather than send it in the channel 2009-11-16 16:43:34 +00:00
Terence Simpson 7791f6e416 Resync all running ubottu code to bzr branch, they should now be in sync again 2009-10-12 19:26:35 +01:00