add-discord

Solid

Add Discord bot channel integration to NanoClaw.

AI & Automation 29,545 stars 12887 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Add Discord Channel This skill adds Discord support to NanoClaw, then walks through interactive setup. ## Phase 1: Pre-flight ### Check if already applied Check if `src/channels/discord.ts` exists. If it does, skip to Phase 3 (Setup). The code changes are already in place. ### Ask the user Use `AskUserQuestion` to collect configuration: AskUserQuestion: Do you have a Discord bot token, or do you need to create one? If they have one, collect it now. If not, we'll create one in Phase 3. ## Phase 2: Apply Code Changes ### Ensure channel remote ```bash git remote -v ``` If `discord` is missing, add it: ```bash git remote add discord https://github.com/qwibitai/nanoclaw-discord.git ``` ### Merge the skill branch ```bash git fetch discord main git merge discord/main || { git checkout --theirs package-lock.json git add package-lock.json git merge --continue } ``` This merges in: - `src/channels/discord.ts` (DiscordChannel class with self-registration via `registerChannel`) - `src/channels/discord.test.ts` (unit tests with discord.js mock) - `import './discord.js'` appended to the channel barrel file `src/channels/index.ts` - `discord.js` npm dependency in `package.json` - `DISCORD_BOT_TOKEN` in `.env.example` If the merge reports conflicts, resolve them by reading the conflicted files and understanding the intent of both sides. ### Validate code changes ```bash npm install npm run build npx vitest run src/channels/discord.test.ts ``` All tests must pass (...

Details

Author
qwibitai
Repository
qwibitai/nanoclaw
Created
3 months ago
Last Updated
yesterday
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category