A Discord moderation bot powered by AI (NVIDIA NIM + Discord.js).
- AI-powered moderation: uses a language model to understand context and take appropriate actions
- Ban/unban: users
- Timeout (mute)/remove timeout
- Bulk delete: messages
- Warn users: via DM
- Create/delete/assign roles
- Create/delete/edit/move text channels
- Manage channel permissions: (allow/deny for users or roles)
- Pin/unpin messages
- Read channel messages: and fetch recent context
- Search: members, roles, and channels
- Node.js 18+
- pnpm (
npm i -g pnpm) - A Discord bot token
- A NVIDIA NIM API key
# Clone the repository
git clone <repo-url>
cd axiom
# Install dependencies
pnpm install
# Configure environment
cp .env.example .envEdit .env and set your tokens:
DISCORD_BOT_TOKEN=your_discord_bot_token
NIM_API_KEY=your_nim_api_key
pnpm devThe bot will start and listen for Discord commands. Mention it in a channel to interact.
- Runtime: Node.js, TypeScript
- AI SDK: Vercel AI SDK (
ai) +@ai-sdk/openai-compatible - Discord:
discord.jsv14 - LLM Backend: NVIDIA NIM API
Edit src/bot.config.ts to adjust model context message count, and other settings.