diff --git a/.gitignore b/.gitignore index d964ffb..f57548a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,9 +5,12 @@ __pycache__ *.cert .env-local .coverage +coverage.out dist bin # Butterrobot *.sqlite* butterrobot.db +/butterrobot +*_test.db* diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..35fc410 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,22 @@ +# Claude Code Instructions + +## Plugin Development Workflow + +When creating, modifying, or removing plugins: + +1. **Always update the plugin documentation** in `docs/plugins.md` after any plugin changes +2. Ensure the documentation includes: + - Plugin name and category (Development, Fun and entertainment, Utility, Security, Social Media) + - Brief description of functionality + - Usage instructions with examples + - Any configuration requirements + +## Testing + +Before committing plugin changes: + +1. Check files are properly formatted: Run `make format` +2. Check code style and linting: Run `make lint` +3. Test the plugin functionality: Run `make test` +4. Verify documentation accuracy +5. Ensure all examples work as described diff --git a/docs/plugins.md b/docs/plugins.md index 25df16c..1596437 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -9,10 +9,12 @@ - Lo quito: What happens when you say _"lo quito"_...? (Spanish pun) - Dice: Put `!dice` and wathever roll you want to perform. - Coin: Flip a coin and get heads or tails. +- How Long To Beat: Get game completion times from HowLongToBeat.com using `!hltb ` ### Utility - Remind Me: Reply to a message with `!remindme ` to set a reminder. Supported duration units: y (years), mo (months), d (days), h (hours), m (minutes), s (seconds). Examples: `!remindme 1y` for 1 year, `!remindme 3mo` for 3 months, `!remindme 2d` for 2 days, `!remindme 3h` for 3 hours. The bot will mention you with a reminder after the specified time. +- Search and Replace: Reply to any message with `s/search/replace/[flags]` to perform text substitution. Supports flags: `g` (global), `i` (case insensitive), `n` (regex pattern). Example: `s/hello/hi/gi` replaces all occurrences of "hello" with "hi" case-insensitively. ### Security diff --git a/internal/cache/test_cache.db b/internal/cache/test_cache.db deleted file mode 100644 index d50b94d..0000000 Binary files a/internal/cache/test_cache.db and /dev/null differ