fbec05dfe9
Fix hanging test and establish comprehensive development environment
...
- Fix infinite retry loop in ai_responder.py that caused test_fix1 to hang
- Add missing picture_edit parameter to all AIResponse constructor calls
- Set up complete development toolchain with Black, isort, Bandit, and MyPy
- Create comprehensive Makefile for development workflows
- Add pre-commit hooks with formatting, linting, security, and type checking
- Update test mocking to provide contextual responses for different scenarios
- Configure all tools for 140 character line length and strict type checking
- Add DEVELOPMENT.md with setup instructions and workflow documentation
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-08 19:07:14 +02:00
c010603178
Fix and remove some tests, make openai calls cachable in a file.
2023-12-02 22:36:00 +01:00
1ef9439906
Fix mypy errors.
2023-04-13 18:44:28 +02:00
2508a12b44
Fix history limit handling.
2023-04-13 18:36:06 +02:00
b26b98611a
Make the JSON porse a bit more robust.
2023-04-12 19:19:20 +02:00
b1ece64874
Implement possibility to answer to a different channel
2023-04-12 17:56:31 +02:00
9a411a3fed
Handle messages as direct, when bot is mentioned.
2023-04-10 13:50:35 +02:00
96fe10f2e4
Add history test.
2023-04-04 15:35:52 +02:00
24ae6bcf32
Convert markdown links to just links.
2023-03-30 17:33:58 +02:00
9eda81d7eb
Improve parse_maybe_json.
2023-03-30 15:52:11 +02:00
585ecc17c6
Parse response values, when they are JSON.
2023-03-30 15:38:42 +02:00
93c5758e02
Some more fixes, reduce retries.
2023-03-29 19:53:45 +02:00
ddc44bb9da
Improve JSON parsing.
2023-03-29 19:22:54 +02:00
a503ee405c
Ignore short path on messages mentioning the bot directly.
2023-03-27 18:38:56 +02:00
b82477fc83
Support saving history.
2023-03-24 18:27:30 +01:00
Fjerkroa Auto
72c7d83766
Fix error handling when JSON can not be parsed.
2023-03-24 15:29:13 +01:00
78591ef13a
Add support of short path messages, which are not send to the AI but just added to the history.
2023-03-24 13:42:10 +01:00
2e848db333
Suppress embeds in messages.
2023-03-23 18:51:32 +01:00
Fjerkroa Auto
95e810db7a
Add channel name to the messages, fix things.
2023-03-22 23:28:32 +01:00
d23e780248
Support different system messages for different channels and own history for those channels.
2023-03-22 22:16:59 +01:00
c85153c490
Switch to TOML for config file, fix bugs.
2023-03-22 21:37:33 +01:00
c0f1e7e405
Split AI and main tests, implement first AI test.
2023-03-22 18:05:45 +01:00
934ba62557
Begin to add tests for AIResponder.
2023-03-22 17:29:14 +01:00
Fjerkroa Auto
ef933883c0
Support drawing.
2023-03-22 10:46:04 +01:00
Fjerkroa Auto
c0b51f947c
Add ai_responder, some more stuff.
2023-03-21 20:43:46 +01:00
Fjerkroa Auto
5054cac49b
Initial commit.
2023-03-21 18:25:14 +01:00