Commit Graph

144 Commits

Author SHA1 Message Date
Terence Simpson 7a1dc5c616 Reply when a factoid is requested in /msg 2010-06-09 15:07:52 +01:00
Terence Simpson 5082202a3e fix++ 2010-05-29 00:55:07 +01:00
Terence Simpson f3de8f84a6 Make a custom anything() function that follows the same form as every other function in supybot.questions, because apparently no one thought this was a good idea... 2010-05-28 23:51:28 +01:00
Terence Simpson 15d0b1cbda s/replaychannel/relaychannel/ Thanks FireCrotch
(PS: r200 :)
2010-05-28 23:35:53 +01:00
Elián Hanisch c0ba4ab1ab fix typo 2010-05-24 17:27:28 -03:00
Terence Simpson 7e874dc706 Merge++ 2010-05-24 14:50:16 +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 22b45065a3 Terence's commits 2010-05-22 20:48:33 -03:00
Elián Hanisch 99530e7211 simple testcase for Encyclopedia
getting this to work tired me and I don't feel like adding more tests.
2010-05-22 20:41:05 -03:00
Elián Hanisch 56cd566609 disable threadding:
threadded plugin + sqlite = locking issues
2010-05-22 20:39:25 -03:00
Terence Simpson 0320609071 use /usr/bin/env for #! lines 2010-05-19 14:11:16 +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 0cb8fc1fb7 Style touch-ups and code reuse 2010-03-29 09:02:17 +01:00
Elián Hanisch ae4ee8d666 show when and who last edited a factoid in the cgi page 2010-03-28 20:52:30 -03:00
Terence Simpson b355b89f4a And the rest 2010-02-04 19:01:11 +00:00
Terence Simpson 562b0faf0f Update author/version/url info 2009-11-26 16:39:34 +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
Terence Simpson cc4e59ca57 Update Encyclopedia config.py to use the new ubottu.com address (LP: 340274) 2009-03-10 05:16:09 +00:00
Terence Simpson f0e2dffbe2 Update code from working branch and fix a couple of bugs 2009-01-19 22:10:51 +00:00
Terence Simpson 4094c59f58 Fix a small SQL injection issue and update copyright of factoids.cgi 2008-12-10 06:48:18 +00:00
Terence Simpson 8c583fb0eb Fix HTML 2008-11-01 21:34:55 +00:00
Terence Simpson 12711d5b91 Disable debugging code 2008-10-28 08:13:57 +00:00
Terence Simpson 687e689b09 Small fixes and documentation updates 2008-10-28 08:09:48 +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 39044a2c16 Updated defaults for plugins.Encyclopedia.remotedb and plugins.Encyclopedia.alert 2008-10-21 22:54:26 +01:00
Terence Simpson 4105f4f2db Update Encyclopedia
Make sure Lart, Mess, Webcal and IRCLogin all work when defaultIgnore is True
2008-09-28 02:55:23 +01:00
Terence Simpson de212755bb Fix @sync again 2008-08-07 18:42:46 +01:00
Terence Simpson 03aa1fda82 add supybot.utils to Encyclopedia/plugins.py 2008-08-07 18:17:53 +01:00
Terence Simpson 8290296373 Fix broken capability checking and extend with some hierarchy checking 2008-08-07 14:31:26 +01:00
Terence Simpson 24a296c2d8 Implement the 'sync' command fully, making the 'remotedb' variable channel specific. See @help sync 2008-08-07 12:37:25 +01:00
Terence Simpson 0a39ae7222 Make sure all modules uses are imported 2008-08-07 06:49:37 +01:00
Terence Simpson 9660e4e41d More inteligent !factoid > user handling 2008-08-07 06:43:22 +01:00
Terence Simpson 24fe143332 This makes 100 :) 2008-08-04 20:09:49 +01:00
Terence Simpson f173b65390 The "Massive Update" edition:
Mess:
 * Fixed file lookup to not depend on order in config file
Encyclopedia:
 * Lots of small fixes and a few additions
Bantracker:
 * Web-interface now has a special oper: keyword, logs can now be hidden too
 * Added new commands: 'updatebt': Syncs with the channel ban list,
   'coment': Reads or adds a comment for a ban,
   'togglemsg': Toggles /msg's from the bot,
   'banlink': Sends a direct link to the a log with a highlight
 * Updated several commands and made hostname lookup more intelligent
2008-08-04 11:11:15 +01:00
Terence Simpson 8f254c3ad5 Use UTC for all times visable to the user 2008-08-04 04:51:32 +01:00
Terence Simpson 168050b05c Big-Old-Update Edition
FreenodeAuth has been replaced by the IRCLogin plugin
Bantracker, Bugtracker, Encyclopedia and Lart have some fixes updates
2008-07-20 16:59:27 +01:00
Terence Simpson c46c983c71 '/msg <botname> search ...' now works as expected 2008-06-02 10:33:53 +01:00
Terence Simpson ade1297f6c Bugtracker: Small fix
Encyclopedia: Fix "Everyone is an editor" bug
2008-05-28 23:22:15 +01:00
Terence Simpson ee4d16b352 When checking if the bot is addressed, check with case-insensitivity 2008-05-16 04:57:03 +01:00
Terence Simpson 8dc82d12ff Remove '-F' from apt-file options, it seems to give no results 2008-05-14 08:37:21 +01:00
Terence Simpson da3317d8ae Because I'm dumb 2008-05-13 22:22:50 +01:00
Terence Simpson 68d0540458 Fix code that seems to fail 2008-05-13 21:08:59 +01:00
Terence Simpson 06814d02cd If python-apt isn't installed (like on some non-debian systems) then just disable package search and lookup 2008-05-11 16:16:20 +01:00
Terence Simpson 30549cba8b Remove some checking for '>' and '|' when creating factoids, should allow adding factoids with > and | in them.
** Not sure if this will cause a problem or not, but it should be ok hopefully **
2008-05-11 02:50:54 +01:00
Terence Simpson 21ab658806 Encyclopedia:
Fix channel specific factoid lookup for channes with Upper-case names (LP: #203595)
Bugtracker:
  Add @mark to add a Bantracker entry without having to kick or ban (LP: #159568)
2008-05-11 02:36:57 +01:00
Terence Simpson eaeb52c797 make !find case sensitive as apt-file is 2008-05-10 17:01:24 +01:00
Terence Simpson 69e7bfce35 Small edit to the code that detects when the bot is being addressed and returns a factoid 2008-05-10 16:47:49 +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 dc653d3df1 Don't assume the bots nick is 5 chars long,
now the bot responds with the factoid when addressed by nick and !
2008-05-08 20:41:50 +01:00
Terence Simpson 5e92746f22 Small fix 2008-05-07 21:11:04 +01:00
Terence Simpson 02bcaf5336 Factoid editing now recognises ~= as <sed>
Displaying info on a factoid (!-factoid) now shows who was the last to edit also
Adding an <alias> factoid should now work when the factoid is new
Package lookup even more rebust, readded source information
2008-05-07 03:04:23 +01:00
Terence Simpson 9fa81121c8 Make !find and !info more robust
Add a new configuration variable 'tzUrl' for the location of a list of supported timezones
Remove silly code that said "GMT" is not a valid timezone
2008-05-06 17:22:00 +01:00
Terence Simpson a2a27edfd4 Fix a couple typos 2008-05-05 19:10:49 +01:00
Terence Simpson eb2dcaade2 Added @help values
Fixed Mess
2008-05-05 17:44:14 +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 9be83810c6 show sourcepackage in \!info 2008-01-26 15:23:20 +01:00
Dennis Kaarsemaker bd6239e9ef Misc fixes 2008-01-19 18:57:32 +01:00
Dennis Kaarsemaker 5ab56888fe I'm blue dabadee..... 2007-10-02 23:06:14 +02:00
Dennis Kaarsemaker e93d83aec3 alias/also fixes
avoid nickspam with @editors
2007-10-02 23:05:26 +02:00
Dennis Kaarsemaker c45c9fe6c3 Fix <reply> badness 2007-07-27 20:12:50 +02:00
Dennis Kaarsemaker 7121fa6a62 Update index.html 2007-06-08 20:51:18 +02:00
Dennis Kaarsemaker d218ddad74 Misc fixes
Add CVE snarfer
Malone -> Launchpad rename
2007-06-08 20:16:37 +02:00
Dennis Kaarsemaker 10022b2a42 More fixes\!\! 2007-04-01 13:23:45 +02:00
Dennis Kaarsemaker 8da397faf2 Ubugtu is dead, long live ubugtu 2007-03-25 19:14:33 +02:00
Dennis Kaarsemaker 02f675df11 * Fixes in Mess
* Made Encyclopedia close/open database connections about hourly (depending on
  usage)
* Encyclopedias prefixcha is now per-channel
2007-03-14 21:50:20 +01:00
Dennis Kaarsemaker a3481af25c Fixy fixy! 2007-02-10 22:47:18 +01:00
Dennis Kaarsemaker e375094603 More fixes everywhere 2007-02-04 23:10:10 +01:00
Dennis Kaarsemaker f3ffcabca9 Encyclopedia made neat. 2007-02-04 18:35:40 +01:00
Dennis Kaarsemaker 139d186c83 Bugtracker now is much more usable and contains documentation. Backwards
incompatible though!
2007-02-01 09:46:32 +01:00
Dennis Kaarsemaker 3ca25ef2d1 Made bantracker releaseable
some small fixes
Added a pony
2007-01-22 22:14:41 +01:00
Dennis Kaarsemaker c625bf3697 adkfasdyfb 2006-12-27 15:33:59 +01:00
Dennis Kaarsemaker 167d4b8005 Jingle bell rock! 2006-12-07 11:25:01 +01:00
Dennis Kaarsemaker ead8584fcc Blablabla 2006-11-21 00:23:53 +01:00
Dennis Kaarsemaker 19d13cc640 This project is now officially the one with the worst commitlog :)
Fixes all over the place, won't say which :p
2006-11-17 01:11:05 +01:00
Dennis Kaarsemaker 80ecfbfa19 Just keep fixing 2006-10-20 16:15:36 +02:00
Dennis Kaarsemaker 74af0c989f Yes, more features! 2006-10-19 16:39:11 +02:00
Dennis Kaarsemaker 45c337e8e1 Removed last hardcoded Ubuntu reference and fixed a small bug 2006-10-03 02:05:56 +02:00
Dennis Kaarsemaker 9a1d60918f Add search, make encyclopedia more general, misc fixes 2006-09-28 14:35:24 +02:00
Dennis Kaarsemaker 4b5931194b Report new bugs, auto-lookup packages if !foo fails 2006-09-07 23:22:26 +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 bf781db854 Fix some double messages in case of autehnticatio errors 2006-07-18 22:48:41 +02:00
Dennis Kaarsemaker b6f6704b03 Add multi-line fectoids to webinterface, add @mcgyver for mcgyver facts 2006-07-17 11:05:42 +02:00
Dennis Kaarsemaker 1b1e1d1787 * Don't display 'in xxx minutes' for current meeting
* Support buntudot
* Support multiple databases in the web interface
* Show architecture for package info if not all/any
2006-07-13 22:21:54 +02:00
Dennis Kaarsemaker b54ffcd3b9 Make 'ubotu, tell foo about bar' work again 2006-07-12 13:41:48 +02:00
Dennis Kaarsemaker 3440e877e5 Initial doTopic work, apt dir moved and support seveas 2006-07-12 10:53:55 +02:00
Dennis Kaarsemaker 21c677eb06 Replace with channel name in factoids 2006-07-11 17:23:51 +02:00
Dennis Kaarsemaker 8e617a13fa Don't show channel names in factoids 2006-07-11 01:16:43 +02:00
Dennis Kaarsemaker 688a1f944b Various fixes, added possibility for 2-line factoids 2006-07-10 23:25:08 +02:00
Dennis Kaarsemaker 0907c8e74b * Fixed bantracker webinterface
* Added authorinfo to factoids
* Added hhgttg quotes and magic 8ball to the mess plugin
* Enabled ubotu, tell ... again
2006-07-02 11:40:22 +02:00
Dennis Kaarsemaker de92682c61 Small fixes 2006-06-26 21:00:02 +02:00
Dennis Kaarsemaker aea38c93ff Initial checkin 2006-06-26 19:57:20 +02:00