2 Commits

Author SHA1 Message Date
Ben Johnston
f327136c34
* Added updating IRC in response to newly created/edited diffs
* Significant refactoring: lugito wrapped into a class with common methods, IRC
and Launchpad communications separated as connectors with a separate webhook
module.
* Some unit-tests added
* Added functionality for ircbot to respond to diff links and info as well as
extracting anchor links from tasks / diffs e.g. D15#167
* Built into a python package structure

Still Requires:
* Improved test coverage
* Package documentation
* Additional functionality for other phabricator apps
2018-11-16 01:42:02 +11:00
Thomas Ward
165c866a5d Multiple changes, cleanup, etc.
- Missing .gitignore.  Add it.
 - Missing requirements.txt, required.  Added.
 - lugito.py:
   - Missing http.client, `import http` isn't enough for that.  Import
     it.
   - Spaces around concatenation `+` and such. Spaces between defs.
     PEP8 style.
   - Simplify `if` and logicals.  Simplify loops.
   - Stop using deprecated commands per deprecation warnings.
   - Don't shadow other higher-up inherited variables such as 'hash'.
   - Declare variables that are 'always' referred to, to avoid problems.
   - Use regex instead of re, per Python 3 API recommendations to use
     'regex' instead of 're'.
2018-11-03 14:59:22 -05:00