ai-agent

Slash Command Bot

About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this slash command handler.
139 stars24 forksJavaScriptUpdated 2/23/2026100% free · open source
What it does

The slash-command-bot is a customizable Discord bot template that allows you to create your own Discord bot with a slash command handler using discord.js v14.

When to use it
  • You want to create a custom Discord bot with specific commands for your community
  • You need a flexible and configurable bot that can be extended with new commands
  • You are already familiar with JavaScript and want to leverage discord.js v14 for your bot development
Ready-to-paste prompt
Create a new command called `hello` by creating a file `hello.js` in the `commands` directory with the content: `module.exports = { name: 'hello', description: 'Say hello!', execute: (interaction) => interaction.reply('Hello!') };`
Heads up: Make sure to handle errors and exceptions properly in your command logic, as discord.js v14 has a strict error handling mechanism that requires you to catch and handle errors explicitly to avoid crashing the bot
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/slash-command-bot && curl -fsSL https://workflowstacks.com/api/skills/slash-command-bot/claude-skill -o ~/.claude/skills/slash-command-bot/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Slash Command Bot works
Codeflow
Free to inspect

Slash Command Bot is a tiny JavaScript project (~100 lines across 5 code files). Setup is light: installs like a normal app. Reading the code is optional. Last commit 7 months ago, no license file, no tests found.

Size
Tiny codebase
~100 lines · 5 code files · 2 min skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Node.js
No API keys detected
JavaScript 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    index.js
    Where the program starts running
  3. 3
    package.json
    Dependencies and the commands it exposes
  4. 4
    commands/ping.js
    Inside commands/ — an example of what the AI is told to do
What's in each folder
commands/Prompts, skills & agent definitions1 files
events/Folder2 files
READMENo tests foundThin docsNo CINo licenseLast update 7 mo ago
Quick Actions
Details
Creator
umutxyp
Language
JavaScript
Category
ai-agent
Published
2/24/2022

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.