A TypeScript port of llmcord Discord bot with some modifications.
client_idand other ids inpermissionsMUST be enclosed in quotes, otherwise they will be treated as numbers. And due to how numbers work in JavaScript, number bigger thanMAX_SAFE_INTEGERwill be inaccurate.- Other options with small numbers are fine, just that Discord ids are always larger than
MAX_SAFE_INTEGERwhen treated as numbers.
- Other options with small numbers are fine, just that Discord ids are always larger than
- This project uses ai-sdk instead of OpenAI's SDK, so there might be some mismatch in provider specific options. Other options are fully compatible with the original project, and should just work.
- Auto upload big images (>1MB) to UploadThing (if configured), and a record is kept in a local SQLite database.
- Username support in all models.
- Remote and local MCP support.
- Optional RAG support via OpenAI's embedding API &
pgvector. Only supports embedding models that use 1536 dimensions.
This project was created using bun init in bun v1.2.19. Bun is a fast all-in-one JavaScript runtime.