Thanks for your interest in contributing! Catnip is a Discord bot template built for Val Town's serverless Deno runtime.
.env.example to .env and fill in your Discord application credentialsdeno test --allow-env --allow-net --no-check
All 1621 tests across 126 files should pass. Tests use mock modules for SQLite, blob storage, and Val Town utilities (see test/_mocks/). See the README for a full coverage breakdown.
discord/interactions/commands/defineCommand() to declare the command and its handlerdiscord/interactions/components/See the README for a full walkthrough with examples.
UserFacingError for errors shown to Discord userscreateLogger() instead of console.log for production loggingkv.update() or kv.claimUpdate() for atomic mutationsOpen an issue on GitHub with:
For security vulnerabilities, see SECURITY.md.