Ben Kurtovic
a73f618e0a
Initial conversion to Python 3
3 jaren geleden
Ben Kurtovic
5534a46c55
Add an unload hook for commands and tasks.
8 jaren geleden
Ben Kurtovic
a17f0ec47b
Add a 'part' hook. Updates.
8 jaren geleden
Ben Kurtovic
4e8be871b7
Update copyright year for 2015.
9 jaren geleden
Ben Kurtovic
39d5c7c149
Update copyright notices for 2014.
10 jaren geleden
Ben Kurtovic
ed95c99f0e
Update email address.
10 jaren geleden
Ben Kurtovic
0b7a13eca5
Update copyright notices for 2013.
11 jaren geleden
Ben Kurtovic
6be8fb48dd
Cleaning up project-wide copyright notices.
12 jaren geleden
Ben Kurtovic
a07920506c
__repr__ and __str__ for all classes (22)
12 jaren geleden
Ben Kurtovic
f7ffd68056
Support hiding certain logs (e.g. ones containing passwords).
12 jaren geleden
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 jaren geleden
Ben Kurtovic
b34dd94f0d
Command.commands; small change in managers; !time
12 jaren geleden
Ben Kurtovic
cfdfc49d78
Command.setup() like Task.setup(); config.commands like config.tasks
12 jaren geleden
Ben Kurtovic
0785372015
Removing extra whitespace in a ton of files
12 jaren geleden
Ben Kurtovic
d4dab49873
More docstring revisions (reST-ifying, cleanup, clarifications)
12 jaren geleden
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 jaren geleden
Ben Kurtovic
9eb85f1b6f
Update docs, including README.rst (almost done)
12 jaren geleden
Ben Kurtovic
a97670262b
More helpful logging; support for !parts with messages
12 jaren geleden
Ben Kurtovic
30e9d30f9f
Using function aliases whenever possible; !join and !part
12 jaren geleden
Ben Kurtovic
cc6a4c6b99
Release manager's _resource_access_lock before processing a command so it can reload itself
12 jaren geleden
Ben Kurtovic
0c6f627e43
Move Command+TaskManagers to a common earwigbot.managers module
12 jaren geleden
Ben Kurtovic
03062e808b
Wrote the command-line utility, added logging levels, improved Bot organization
- Fixed loading bugs in CommandLoader and TaskLoader
12 jaren geleden
Ben Kurtovic
e473653507
Updates to setup.py, unit tests, and logging
12 jaren geleden
Ben Kurtovic
60b52f6aeb
__iter__ for Command+TaskManager instead of get_all()
12 jaren geleden
Ben Kurtovic
8a7eb798a3
Fix all references to earwigbot.config.config; update SitesDBManager
12 jaren geleden
Ben Kurtovic
2211acc81d
Update TaskManager implementation
12 jaren geleden
Ben Kurtovic
079b424eca
Fixing up !restart and !reload a bit
12 jaren geleden
Ben Kurtovic
d901a252bb
More cleanup for IRC stuff
12 jaren geleden
Ben Kurtovic
abe58a07f6
CommandManager as attr of Bot, plus cleanup
12 jaren geleden
Ben Kurtovic
424a954af6
Moving rest of earwigbot.classes to earwigbot.tasks
12 jaren geleden
Ben Kurtovic
1d02af98fa
Relocate BaseCommand to earwigbot.commands; _CommandManager class
12 jaren geleden
Ben Kurtovic
2da906109b
Copyright update for 2012.
12 jaren geleden
Ben Kurtovic
bff00f9b28
Restruturing codebase to be a bit more Pythonic.
12 jaren geleden
Ben Kurtovic
d08c56f594
Using logging throughout the bot now
12 jaren geleden
Ben Kurtovic
39a4d22620
task loading and running both work now, including the schedule and !tasks command\nbot restructuring should be complete - woo!
12 jaren geleden
Ben Kurtovic
99d0e7588f
loading commands now works, along with 'help' and 'test'; docstring fixes, etc
12 jaren geleden
Ben Kurtovic
8c6fb2e8ba
more cleanup, improvements, fixes, whatever; restructured command files, but haven't done all of them yet
12 jaren geleden
Ben Kurtovic
b0da4531b2
tons of improvements, import fixes, cleanup, etc
12 jaren geleden
Ben Kurtovic
68af0e796f
restructuring everything for unit tests, etc; bot doesn't work anymore, but I'll fix that in a bit
12 jaren geleden
Ben Kurtovic
87d3e9a74a
more nitpicking
13 jaren geleden
Ben Kurtovic
e429c9270b
some careless errors, and giving command name in traceback
13 jaren geleden
Ben Kurtovic
20ffe4b55a
hopefully catch command exceptions properly this time
13 jaren geleden
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 jaren geleden
Ben Kurtovic
36801bda6a
alphabetically sort list of files when loading command modules
13 jaren geleden
Ben Kurtovic
eee571879c
commands now support multiple hooks
13 jaren geleden
Ben Kurtovic
c81e0e2260
rmv unnecessary silent param; unused
13 jaren geleden
Ben Kurtovic
76c3d9dd3e
renaming triggers.py to command_handler.py
13 jaren geleden
Ben Kurtovic
e743734bac
redoing irc command management: rewriting triggers and creating a BaseCommand class, also some changes to Data and Connection
13 jaren geleden
Ben Kurtovic
a7d8faa0a0
fix by moving aliases to help
13 jaren geleden
Ben Kurtovic
50ef200a22
support command aliases in bot help
13 jaren geleden