Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "claudeclaw",
"source": "./",
"description": "Cron-like daemon that runs Claude prompts on a schedule",
"version": "1.0.39",
"version": "1.0.40",
"keywords": [
"cron",
"heartbeat",
Expand Down
2 changes: 1 addition & 1 deletion .claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "claudeclaw",
"version": "1.0.39",
"version": "1.0.40",
"description": "Cron-like daemon that runs Claude prompts on a schedule"
}
10 changes: 10 additions & 0 deletions src/commands/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ interface DiscordMessage {
type: number;
}

const enum DiscordMessageType {
Default = 0,
Reply = 19,
ThreadCreated = 18,
}

interface DiscordInteraction {
id: string;
type: number; // 2=APPLICATION_COMMAND, 3=MESSAGE_COMPONENT
Expand Down Expand Up @@ -740,6 +746,10 @@ async function handleMessageCreate(token: string, message: DiscordMessage, skipC
// Ignore bot messages
if (message.author.bot) return;

// Ignore system message types (thread creation recap, pins, etc.) — only process
// regular messages (0) and replies (19) to avoid spurious prompts on the parent channel.
if (message.type !== DiscordMessageType.Default && message.type !== DiscordMessageType.Reply) return;

const userId = message.author.id;
const channelId = message.channel_id;
const isDM = !message.guild_id;
Expand Down
Loading