Commit Graph

92 Commits

Author SHA1 Message Date
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