feat: add /add-guild slash command

This commit is contained in:
2026-04-05 19:24:06 +00:00
parent 9aa85fdbc5
commit fd33290266
2 changed files with 63 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ import { registerBeforePromptBuildHook } from "./hooks/before-prompt-build.js";
import { registerBeforeMessageWriteHook } from "./hooks/before-message-write.js";
import { registerMessageSentHook } from "./hooks/message-sent.js";
import { registerDirigentCommand } from "./commands/dirigent-command.js";
import { registerAddGuildCommand } from "./commands/add-guild-command.js";
import { registerDirigentTools } from "./tools/register-tools.js";
import { ensurePolicyStateLoaded, persistPolicies, policyState } from "./policy/store.js";
import { buildAgentIdentity, buildUserIdToAccountIdMap, resolveAccountId } from "./core/identity.js";
@@ -201,6 +202,9 @@ export default {
ensurePolicyStateLoaded,
});
// Register add-guild command
registerAddGuildCommand(api);
// Handle NO_REPLY detection before message write
registerBeforeMessageWriteHook({
api,