Ben Kurtovic
78ac1b8a80
Tons of refactoring, miscellaneous cleanup, and improvements.
* _ResourceManager: allow resources to be named anything as long as they
inherit from the base resource class; gave resources proper names.
* Renamed BaseCommand to Command and BaseTask to Task; applied renames
throughout earwigbot.commands and earwigbot.tasks.
* Data: refactored argument and command parsing to be completely internal.
Added docstrings to attributes. Applied changes to Frontend.
* IRCConnection: improved such that we accurately detect disconnects with
server pings; timeout support. Applied changes to Bot.
* Updated documentation and other minor fixes.
12 years ago
Ben Kurtovic
b34dd94f0d
Command.commands; small change in managers; !time
12 years ago
Ben Kurtovic
0785372015
Removing extra whitespace in a ton of files
12 years ago
Ben Kurtovic
d4dab49873
More docstring revisions (reST-ifying, cleanup, clarifications)
12 years ago
Ben Kurtovic
bc9fdf28f4
A handful of fixes, cleanup, and improvements.
12 years ago
Ben Kurtovic
6450d99a0f
Better docstrings for a bunch of modules
12 years ago
Ben Kurtovic
ce1e598421
Two minor changes
12 years ago
Ben Kurtovic
80091b2de3
Updating README and class docstrings throughout wiki toolset
* Much of the documentation doesn't match the code; code will be
updated in develop soon
12 years ago
Ben Kurtovic
b3c0869db2
Misc additions, cleanup, and fixes, including:
* Support for starting commands using the bot's name
* Moved _wrap_check and _wrap_process to the CommandManager
* Removed extra sortkey in afc_statistics
12 years ago
Ben Kurtovic
af146bf070
Round time in "throttled" log msg so it's a bit more realistic
12 years ago
Ben Kurtovic
27848087cc
Daemonize task threads; clean up logging
12 years ago
Ben Kurtovic
cc6a4c6b99
Release manager's _resource_access_lock before processing a command so it can reload itself
12 years ago
Ben Kurtovic
eead11ffb6
Docstrings and cleanup in earwigbot.managers
12 years ago
Ben Kurtovic
03fe3305d9
Avoid duplicating code thanks to _BaseManager
12 years ago
Ben Kurtovic
0c6f627e43
Move Command+TaskManagers to a common earwigbot.managers module
12 years ago
Ben Kurtovic
03062e808b
Wrote the command-line utility, added logging levels, improved Bot organization
- Fixed loading bugs in CommandLoader and TaskLoader
12 years ago
Ben Kurtovic
54739d5553
Update references to Wiki Toolset, plus other fixes
12 years ago
Ben Kurtovic
e473653507
Updates to setup.py, unit tests, and logging
12 years ago
Ben Kurtovic
60b52f6aeb
__iter__ for Command+TaskManager instead of get_all()
12 years ago
Ben Kurtovic
8a7eb798a3
Fix all references to earwigbot.config.config; update SitesDBManager
12 years ago
Ben Kurtovic
2211acc81d
Update TaskManager implementation
12 years ago
Ben Kurtovic
117eccc35d
Beginning work ( #16 )
12 years ago
Ben Kurtovic
424a954af6
Moving rest of earwigbot.classes to earwigbot.tasks
12 years ago
Ben Kurtovic
2da906109b
Copyright update for 2012.
12 years ago
Ben Kurtovic
bff00f9b28
Restruturing codebase to be a bit more Pythonic.
12 years ago
Ben Kurtovic
d949269944
Some SQL updates, starting work on afc_history task.
* get() -> return a Task instance by name (tasks)
* Using SQL to save API queries. (commands.{afc_report,afc_status})
* ignore_list -> ignoreList in config. (tasks.afc_statistics)
12 years ago
Ben Kurtovic
d08c56f594
Using logging throughout the bot now
12 years ago
Ben Kurtovic
6ce2a96e22
Logging
12 years ago
Ben Kurtovic
39a4d22620
task loading and running both work now, including the schedule and !tasks command\nbot restructuring should be complete - woo!
13 years ago
Ben Kurtovic
9237a7ed9e
all IRC commands should work now; renamed tasks.py to threads.py to avoid conflicting with bot/tasks/
13 years ago
Ben Kurtovic
99d0e7588f
loading commands now works, along with 'help' and 'test'; docstring fixes, etc
13 years ago
Ben Kurtovic
8c6fb2e8ba
more cleanup, improvements, fixes, whatever; restructured command files, but haven't done all of them yet
13 years ago
Ben Kurtovic
b0da4531b2
tons of improvements, import fixes, cleanup, etc
13 years ago
Ben Kurtovic
68af0e796f
restructuring everything for unit tests, etc; bot doesn't work anymore, but I'll fix that in a bit
13 years ago
Ben Kurtovic
50f1f38fe3
list, not tuple
13 years ago
Ben Kurtovic
5756e99085
making task_name class-wide instead of instance-wide; better docs for BaseTask; slight cleanup in task_manager
13 years ago
Ben Kurtovic
7311ae4bb8
switching from XML config to JSON config - it's just much easier to parse and little easier on the eyes (not to mention shorter in length)
13 years ago
Ben Kurtovic
d57f2623d2
parse remaining parts of config.xml; getting rid of config.watcher and moving to irc/watcher_logic.py; convert irc/watcher.py and wiki/task_manager.py to new config system; other changes/fixes/whatever
13 years ago
Ben Kurtovic
07ce4a38f2
message cleanup
13 years ago
Ben Kurtovic
ea83a59372
give ids of active tasks with .tasks listall; give start time of threads with .tasks list; fix in task_manager.py
13 years ago
Ben Kurtovic
655fe78312
creating backbone for wiki-editing tasks: they can be spawned on a cron-like schedule with config/schedule.py, in response to certain edits in config/watcher.py, or through IRC (not implemented yet - I'll need to figure out permissions); task files are in wiki/tasks/, and the wiki-editing tools (think very simplified pywikipedia) will be in wiki/tools/
13 years ago