summaryrefslogtreecommitdiff
path: root/crocoite/irc.py
AgeCommit message (Collapse)AuthorFilesLines
2019-07-04Rename cli utilsLars-Dominik Braun1-8/+11
crocoite-recursive is now just crocoite, crocoite-grab is not user-facing any more and called crocoite-single. In preparation for 1.0 release.
2019-07-03irc: Do not respond when not addressed directlyLars-Dominik Braun1-1/+1
This fixes annoying messages when using the bot’s nick as the first word of a message, i.e. “chromebot can do that”.
2019-06-26Allow turning off cert validationLars-Dominik Braun1-4/+13
Add --insecure switch (shamelessly stolen from CURL) to both, -grab and -irc.
2019-05-05irc: Switch job id’s to proquintsLars-Dominik Braun1-4/+41
They’re easier to read and remember for humans. Plus we don’t really need 128 bits of randomness. Time-based id’s are fine here.
2019-05-05irc: Add job info to warcinfo recordLars-Dominik Braun1-5/+17
2019-03-08irc: Add config option need_voiceLars-Dominik Braun1-25/+34
Do not hardcode required priviledge to use bot, make it configureable.
2019-03-06irc: Remove unused args for on*Lars-Dominik Braun1-3/+3
onMode will not always receive nick and user argument (i.e. server sets mode). Remove them, since they are unused.
2019-03-05irc: Fix NAMES reply handlingLars-Dominik Braun1-1/+6
User list may be send using multiple reply messages if too long. Do not overwrite the previous one.
2019-03-05Replace mutable default argumentsLars-Dominik Braun1-7/+7
This fixes IRC permission checks. Previously all users who joined the channel after the bot stored their modes in the same set(). Can be detected with pylint W0102.
2019-02-02irc: Fail if bot command is emptyLars-Dominik Braun1-1/+1
2019-02-02irc: Retry if reconnect failsLars-Dominik Braun1-4/+8
2019-01-27irc: Add URL blacklistLars-Dominik Braun1-2/+14
2019-01-27Increase subprocess’ StreamReader limitsLars-Dominik Braun1-1/+1
We’re sending quite big JSON objects since 3a2fcc69a8eb4237b2862b3e291971d38748f115.
2019-01-26irc: Fix format stringLars-Dominik Braun1-6/+6
2018-12-24Use f-strings where possibleLars-Dominik Braun1-17/+15
Replaces str.format, which is less readable due to its separation of format and arguments.
2018-11-19Coding styleLars-Dominik Braun1-5/+3
Fix a few random issues pointed out by pylint, mainly unused imports.
2018-10-14irc: Add PoC dashboardLars-Dominik Braun1-10/+99
Using websockets, vue and bulma.
2018-10-14irc: Graceful bot shutdownLars-Dominik Braun1-12/+63
Wait for remaining jobs to finish without accepting new ones, but still allow some interaction with the bot (status/revoke).
2018-10-03irc: Fix mode parsingLars-Dominik Braun1-7/+23
Ignore unsupported modes, add tests.
2018-10-02irc: Refactoring/beautificationLars-Dominik Braun1-98/+260
Add logging, split bot into abstract bot implementation and actual chromebot implementation, move some reusable checks into decorators.
2018-09-29irc: Limit number of processes spawnedLars-Dominik Braun1-20/+23
2018-09-29Add simple IRC botLars-Dominik Braun1-0/+254
chromebot is back! Dropping sopel, because it does not work well with asyncio.