Skip to content
Agentmart
Submit a tool

discord-auto-deploy

Auto-deploy a Discord AI bot connected to OpenClaw Gateway.

Skill by giggle-official

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/giggle-official-discord-auto-deploy

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Auto-deploy a Discord AI bot connected to OpenClaw Gateway. Handles Node.js bot setup, PM2 process management, and Gateway API integration. Use when the user has completed Discord Bot onboarding and needs the bot deployed and running.

Use cases: backend, devops, marketing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/discord-auto-deploy

What's inside

Skill name
discord-auto-deploy
Description
Auto-deploy a Discord AI bot connected to OpenClaw Gateway. Handles Node.js bot setup, PM2 process management, and Gateway API integration. Use when the user has completed Discord Bot onboarding and needs the bot deployed and running.
License
MIT
Instructions
194 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts
  • Instructions call the network

Files (3)

  • SKILL.md
  • index.js · templates/
  • package.json · templates/

SKILL.md (first lines)

# Discord Auto-Deploy Skill

This skill handles the full deployment of a Discord AI bot after onboarding is complete.

## When to Use

Load and follow this skill when:
- User has completed the onboarding flow (bot_config.json exists with `onboarding_complete: true`)
- User asks to deploy, start, or restart the Discord bot
- Bot is not responding and needs to be fixed or redeployed

## Deployment Steps

When triggered, execute the following steps **in order**. Do not skip any step.

### Step 1 — Read Configuration

Read `outputs/bot_config.json` and extract:
- `server_id`
- `channel_ids[0]` (primary channel)
- `token_provided` (must be true)

Also read `discord-bot/.env` to check if DISCORD_TOKEN is already set.

### Step 2 — Enable Gateway API

Run the following commands:

```bash
openclaw config set gateway.http.endpoints.chatCompletions.enabled true
```

Then restart the gateway:

```bash
openclaw gateway restart
```

Wait 5 seconds, then verify:

```bash
curl -s http://localhost:18789/v1/models \
  -H "Authorization: Bearer $(cat ~/.openclaw/gateway-password.txt)"
```

Expected: JSON response containing `openclaw/discord-community-growth-expert`.

If verification fails, wait 5 more seconds and retry once.

### Step 3 — Create Bot Directory

Create the directory structure:

```bash
mkdir -p <workspace>/discord-bot
```

Where `<workspace>` is the agent workspace root.

### Step 4 — Write Bot Files

Write the following files to `discord-bot/`:

**package.json** — use template at `templates/package.json`

**.env** — write with actual values:
```
DISCORD_TOKEN=<token_from_user>
DISCORD_CHANNEL_ID=<channel_id_from_config>
```

**index.js** — use template at `templates/index.js`

### Step 5 — Install Dependencies

```bash
cd <workspace>/discord-bot
npm install discord.js dotenv
```

### Step 6 — Start with PM2

Stop any existing instance first:
```bash
npx pm2 delete discord-bot 2>/dev/null || true
```

Start fresh:
```bash
npx pm2 start index.js --name discord-bot
```

Enable auto-restart on system reboot:
```bash
npx pm2 startup 2>/dev/null || true
npx pm2 save
```

### Step 7 — Verify

Wait 3 seconds, then check status:

```bash
npx pm2 list | grep discord-bot
```

Expected: status shows `online`.

Also check logs for startup confirmation:
```bash
npx pm2 logs discord-bot --lines 5 --nostream
```

Expected output includes:
```
✅ Bot 已上线: <bot-name>
📡 监听频道 ID: <channel-id>
```

From giggle-official/skills, MIT.

More from giggle-official/skills

Signals

Stars
0
Forks
2
Open issues
0
Last commit (this folder)
May 9, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from giggle-official

Cite this page

discord-auto-deploy skill. Agent Mart. https://agentmart.dev/skills/giggle-official-discord-auto-deploy (last updated 2026-10-24)