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
Simon Quigley
69b8a53462
Only sleep for a fifth of a second, no more.
2018-09-29 19:48:33 -05:00
Simon Quigley
a933ae009a
Add the nm-tray packaging.
2018-08-16 14:24:21 -05:00
Simon Quigley
e1a859fc5e
Don't fail if the regex doesn't match.
2018-08-16 14:19:59 -05:00
Simon Quigley
605e65df66
Add lxqt-config to the whitelist.
2018-08-09 14:12:31 -05:00
Simon Quigley
9b2bf41696
Import changes made on prod.
2018-08-09 14:05:16 -05:00
Simon Quigley
3310089673
Add detection for QTerminal.
2018-07-29 14:57:40 -05:00
Simon Quigley
4748fdd48c
Make sure we're actually POSTing.
2018-07-25 04:19:00 -05:00
Simon Quigley
2e9c24fcb8
Use prod, not staging.
2018-07-25 04:08:08 -05:00
Simon Quigley
f91111a180
Add support for commenting on bugs.
2018-07-25 04:05:30 -05:00
Simon Quigley
1b4fd5e19e
Change to /irc.
2018-07-25 00:40:06 -05:00
Konrad Krawiec
329a0293f3
Use the logging library instead of print statements.
...
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
2018-07-04 14:06:35 -05:00
Simon Quigley
adcfa174e3
Re-implement the previous commit in a much better way.
2018-06-30 20:16:08 -05:00
Simon Quigley
fa063eec73
Add link highlighting for IRC.
2018-06-30 19:58:09 -05:00
Simon Quigley
dfa8d3deba
Refine the output.
2018-06-30 19:53:19 -05:00
Simon Quigley
60937be7c6
Fix obvious typo.
2018-06-30 19:51:22 -05:00
Simon Quigley
785aff3af7
Add (untested) IRC integration code.
2018-06-30 19:49:31 -05:00
Simon Quigley
89776971c2
Add very preliminary support for task info.
2018-06-30 18:50:07 -05:00
Simon Quigley
85fd5846f5
Consolidate variable names.
2018-06-30 18:23:15 -05:00
Simon Quigley
0eb0144ad7
while True, not while 1.
2018-06-30 18:22:33 -05:00
Simon Quigley
fcfa7e76e0
Lubuntu Team is a bit more clear.
2018-06-24 15:08:58 -05:00
Simon Quigley
2338e394aa
Add a delay so we aren't spamming the channel.
2018-06-24 15:07:16 -05:00
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