18 Commits

Author SHA1 Message Date
Simon Quigley
3c7448284a != None isn't needed; you can just do e.g. "if foo:". 2018-06-24 15:02:51 -05:00
Konrad Krawiec
9020af538a Improve the logic.
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
2018-06-24 14:57:00 -05:00
Simon Quigley
1c1cc3f828 Move the "who" code to a central location. 2018-05-20 23:35:33 -05:00
Simon Quigley
552a52b777 Add an untested rework of the way IRC messages are assembled, and add initial support for commits. 2018-05-20 23:31:24 -05:00
Simon Quigley
c82c7fc555 Print the commit name too. 2018-05-20 22:56:20 -05:00
Simon Quigley
b7d3569bc7 Add very preliminary support for commits. 2018-05-20 22:53:40 -05:00
Simon Quigley
8d888dea87 Add another comment. 2018-05-20 22:36:03 -05:00
Simon Quigley
4748c9cc88 The IRC message shouldn't be sent if there's nothing to send. 2018-05-20 22:06:09 -05:00
Simon Quigley
5a633cead3 Rework of things for improved functionality. 2018-05-20 13:01:36 -05:00
Simon Quigley
f941220d8c Make printing a little bit more verbose. 2018-05-20 12:52:48 -05:00
Simon Quigley
263d4ec192 Move the task creation detection code above the comment detection code, and don't run the latter if the former is true. 2018-05-20 12:45:30 -05:00
Simon Quigley
643cec641d Make sure we break the loop when we know that it's a comment, rather than continuing and eventually making the condition false. 2018-05-20 02:44:34 -05:00
Simon Quigley
977cec1c37 Improve the logic a little bit. 2018-05-20 02:34:07 -05:00
Simon Quigley
b72c57bb89 Fix syntax error. 2018-05-20 02:31:25 -05:00
Simon Quigley
9242371342 Add (untested) code for new tasks. 2018-05-20 02:30:37 -05:00
Simon Quigley
0dfac21dd9 The prod channel should be #lubuntu-devel, not my testing channel. 2018-05-20 02:13:16 -05:00
Simon Quigley
3ca9d8ffe1 We never used the task title code; remove it. 2018-05-20 02:12:50 -05:00
Simon Quigley
5f3f2e083a Initial commit. 2018-05-20 01:23:12 -05:00