-
Notifications
You must be signed in to change notification settings - Fork 2
Slash Commands Support #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
20cf6d2
auto-claude: subtask-1-1 - Create command definitions and registratio…
BillChirico 2f72bb0
auto-claude: subtask-1-2 - Add command registration logic to main bot…
BillChirico d4c58ca
auto-claude: subtask-1-3 - Implement interactionCreate event handler
BillChirico 853a511
auto-claude: subtask-1-4 - Implement /ask command handler
BillChirico 20641f7
auto-claude: subtask-1-5 - Implement /help command handler
BillChirico 851e1f8
auto-claude: subtask-1-6 - Implement /clear command handler
BillChirico 7672173
auto-claude: subtask-1-7 - Implement /status command handler
BillChirico File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,172 @@ | ||
| { | ||
| "base_commands": [ | ||
| ".", | ||
| "[", | ||
| "[[", | ||
| "ag", | ||
| "awk", | ||
| "basename", | ||
| "bash", | ||
| "bc", | ||
| "break", | ||
| "cat", | ||
| "cd", | ||
| "chmod", | ||
| "clear", | ||
| "cmp", | ||
| "column", | ||
| "comm", | ||
| "command", | ||
| "continue", | ||
| "cp", | ||
| "curl", | ||
| "cut", | ||
| "date", | ||
| "df", | ||
| "diff", | ||
| "dig", | ||
| "dirname", | ||
| "du", | ||
| "echo", | ||
| "egrep", | ||
| "env", | ||
| "eval", | ||
| "exec", | ||
| "exit", | ||
| "expand", | ||
| "export", | ||
| "expr", | ||
| "false", | ||
| "fd", | ||
| "fgrep", | ||
| "file", | ||
| "find", | ||
| "fmt", | ||
| "fold", | ||
| "gawk", | ||
| "gh", | ||
| "git", | ||
| "grep", | ||
| "gunzip", | ||
| "gzip", | ||
| "head", | ||
| "help", | ||
| "host", | ||
| "iconv", | ||
| "id", | ||
| "jobs", | ||
| "join", | ||
| "jq", | ||
| "kill", | ||
| "killall", | ||
| "less", | ||
| "let", | ||
| "ln", | ||
| "ls", | ||
| "lsof", | ||
| "man", | ||
| "mkdir", | ||
| "mktemp", | ||
| "more", | ||
| "mv", | ||
| "nl", | ||
| "paste", | ||
| "pgrep", | ||
| "ping", | ||
| "pkill", | ||
| "popd", | ||
| "printenv", | ||
| "printf", | ||
| "ps", | ||
| "pushd", | ||
| "pwd", | ||
| "read", | ||
| "readlink", | ||
| "realpath", | ||
| "reset", | ||
| "return", | ||
| "rev", | ||
| "rg", | ||
| "rm", | ||
| "rmdir", | ||
| "sed", | ||
| "seq", | ||
| "set", | ||
| "sh", | ||
| "shuf", | ||
| "sleep", | ||
| "sort", | ||
| "source", | ||
| "split", | ||
| "stat", | ||
| "tail", | ||
| "tar", | ||
| "tee", | ||
| "test", | ||
| "time", | ||
| "timeout", | ||
| "touch", | ||
| "tr", | ||
| "tree", | ||
| "true", | ||
| "type", | ||
| "uname", | ||
| "unexpand", | ||
| "uniq", | ||
| "unset", | ||
| "unzip", | ||
| "watch", | ||
| "wc", | ||
| "wget", | ||
| "whereis", | ||
| "which", | ||
| "whoami", | ||
| "xargs", | ||
| "yes", | ||
| "yq", | ||
| "zip", | ||
| "zsh" | ||
| ], | ||
| "stack_commands": [ | ||
| "node", | ||
| "npm", | ||
| "npx", | ||
| "pnpm", | ||
| "pnpx" | ||
| ], | ||
| "script_commands": [ | ||
| "bun", | ||
| "npm", | ||
| "pnpm", | ||
| "yarn" | ||
| ], | ||
| "custom_commands": [], | ||
| "detected_stack": { | ||
| "languages": [ | ||
| "javascript" | ||
| ], | ||
| "package_managers": [ | ||
| "pnpm" | ||
| ], | ||
| "frameworks": [], | ||
| "databases": [], | ||
| "infrastructure": [], | ||
| "cloud_providers": [], | ||
| "code_quality_tools": [], | ||
| "version_managers": [] | ||
| }, | ||
| "custom_scripts": { | ||
| "npm_scripts": [ | ||
| "start", | ||
| "dev" | ||
| ], | ||
| "make_targets": [], | ||
| "poetry_scripts": [], | ||
| "cargo_aliases": [], | ||
| "shell_scripts": [] | ||
| }, | ||
| "project_dir": "/Users/billchirico/Developer/bill-bot", | ||
| "created_at": "2026-02-03T19:51:09.135836", | ||
| "project_hash": "51a4f617fc8ece9b63e20f8a9950e73b", | ||
| "inherited_from": "/Users/billchirico/Developer/bill-bot" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "active": true, | ||
| "spec": "008-slash-commands-support", | ||
| "state": "building", | ||
| "subtasks": { | ||
| "completed": 4, | ||
| "total": 7, | ||
| "in_progress": 1, | ||
| "failed": 0 | ||
| }, | ||
| "phase": { | ||
| "current": "Slash Commands Implementation", | ||
| "id": null, | ||
| "total": 7 | ||
| }, | ||
| "workers": { | ||
| "active": 0, | ||
| "max": 1 | ||
| }, | ||
| "session": { | ||
| "number": 6, | ||
| "started_at": "2026-02-03T20:34:15.644896" | ||
| }, | ||
| "last_update": "2026-02-03T20:43:59.270346" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| { | ||
| "sandbox": { | ||
| "enabled": true, | ||
| "autoAllowBashIfSandboxed": true | ||
| }, | ||
| "permissions": { | ||
| "defaultMode": "acceptEdits", | ||
| "allow": [ | ||
| "Read(./**)", | ||
| "Write(./**)", | ||
| "Edit(./**)", | ||
| "Glob(./**)", | ||
| "Grep(./**)", | ||
| "Read(/Users/billchirico/Developer/bill-bot/.auto-claude/worktrees/tasks/008-slash-commands-support/**)", | ||
| "Write(/Users/billchirico/Developer/bill-bot/.auto-claude/worktrees/tasks/008-slash-commands-support/**)", | ||
| "Edit(/Users/billchirico/Developer/bill-bot/.auto-claude/worktrees/tasks/008-slash-commands-support/**)", | ||
| "Glob(/Users/billchirico/Developer/bill-bot/.auto-claude/worktrees/tasks/008-slash-commands-support/**)", | ||
| "Grep(/Users/billchirico/Developer/bill-bot/.auto-claude/worktrees/tasks/008-slash-commands-support/**)", | ||
| "Read(/Users/billchirico/Developer/bill-bot/.auto-claude/worktrees/tasks/008-slash-commands-support/.auto-claude/specs/008-slash-commands-support/**)", | ||
| "Write(/Users/billchirico/Developer/bill-bot/.auto-claude/worktrees/tasks/008-slash-commands-support/.auto-claude/specs/008-slash-commands-support/**)", | ||
| "Edit(/Users/billchirico/Developer/bill-bot/.auto-claude/worktrees/tasks/008-slash-commands-support/.auto-claude/specs/008-slash-commands-support/**)", | ||
| "Read(/Users/billchirico/Developer/bill-bot/.auto-claude/**)", | ||
| "Write(/Users/billchirico/Developer/bill-bot/.auto-claude/**)", | ||
| "Edit(/Users/billchirico/Developer/bill-bot/.auto-claude/**)", | ||
| "Glob(/Users/billchirico/Developer/bill-bot/.auto-claude/**)", | ||
| "Grep(/Users/billchirico/Developer/bill-bot/.auto-claude/**)", | ||
| "Bash(*)", | ||
| "WebFetch(*)", | ||
| "WebSearch(*)", | ||
| "mcp__context7__resolve-library-id(*)", | ||
| "mcp__context7__get-library-docs(*)", | ||
| "mcp__graphiti-memory__search_nodes(*)", | ||
| "mcp__graphiti-memory__search_facts(*)", | ||
| "mcp__graphiti-memory__add_episode(*)", | ||
| "mcp__graphiti-memory__get_episodes(*)", | ||
| "mcp__graphiti-memory__get_entity_edge(*)" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| node_modules/ | ||
| .env | ||
| *.log | ||
|
|
||
| # Auto Claude data directory | ||
| .auto-claude/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| /** | ||
| * Bill Bot - Slash Command Definitions | ||
| * | ||
| * Defines all slash commands for Discord interactions | ||
| */ | ||
|
|
||
| import { SlashCommandBuilder } from 'discord.js'; | ||
|
|
||
| /** | ||
| * Slash command definitions | ||
| * Each command is built using Discord's SlashCommandBuilder | ||
| */ | ||
| const commands = [ | ||
| // /ask - AI chat command | ||
| new SlashCommandBuilder() | ||
| .setName('ask') | ||
| .setDescription('Ask the AI a question') | ||
| .addStringOption(option => | ||
| option | ||
| .setName('question') | ||
| .setDescription('Your question for the AI') | ||
| .setRequired(true) | ||
| ), | ||
|
|
||
| // /help - Show available commands | ||
| new SlashCommandBuilder() | ||
| .setName('help') | ||
| .setDescription('Show available commands and usage instructions'), | ||
|
|
||
| // /clear - Reset conversation history | ||
| new SlashCommandBuilder() | ||
| .setName('clear') | ||
| .setDescription('Clear your conversation history with the bot'), | ||
|
|
||
| // /status - Show bot health and stats | ||
| new SlashCommandBuilder() | ||
| .setName('status') | ||
| .setDescription('Show bot status, uptime, and health information'), | ||
| ]; | ||
|
|
||
| /** | ||
| * Export commands as JSON for registration with Discord API | ||
| */ | ||
| export const commandData = commands.map(command => command.toJSON()); | ||
|
|
||
| /** | ||
| * Export commands array for reference | ||
| */ | ||
| export default commands; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Local development files accidentally committed to repository
Medium Severity
Several local development/tooling files were accidentally committed. These include
.auto-claude-security.json,.auto-claude-status, and.claude_settings.json, which contain machine-specific paths (e.g.,/Users/billchirico/Developer/bill-bot), session timestamps, and developer-specific permissions. These files are transient local state for development tools and don't belong in the repository.Additional Locations (2)
.auto-claude-status#L1-L25.claude_settings.json#L1-L39