dev/fix-issues #12
@@ -508,7 +508,8 @@ export default {
|
|||||||
ensurePolicyStateLoaded(api, liveAtRegister);
|
ensurePolicyStateLoaded(api, liveAtRegister);
|
||||||
|
|
||||||
// Resolve plugin directory for locating sibling modules (no-reply-api/)
|
// Resolve plugin directory for locating sibling modules (no-reply-api/)
|
||||||
const pluginDir = path.dirname(new URL(import.meta.url).pathname);
|
// Use api.resolvePath to get the actual plugin directory in OpenClaw environment
|
||||||
|
const pluginDir = api.resolvePath(".");
|
||||||
|
|
||||||
// Gateway lifecycle: start/stop no-reply API and moderator bot with the gateway
|
// Gateway lifecycle: start/stop no-reply API and moderator bot with the gateway
|
||||||
api.on("gateway_start", () => {
|
api.on("gateway_start", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user