- 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'.
Summary: Convert Lugito to use the logging library rather than print statements.
Test Plan: I tested the bot with a random freenode channel - it works without any issues.
Differential Revision: https://phab.lubuntu.me/D2
Summary: Bot now connects to the IRC server only once, responds to ping requests, and reconnects in case of failure.
Test Plan: Test in prod
Reviewers: tsimonq2
Reviewed By: tsimonq2
Subscribers: tsimonq2
Differential Revision: https://phab.lubuntu.me/D1