Skip to content

Commit

Permalink
Continue conversation even deactivated
Browse files Browse the repository at this point in the history
  • Loading branch information
memochou1993 committed Dec 22, 2022
1 parent 6cbe683 commit fa6a9c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/commands/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { execActivateCommand, isActivateCommand } from './activate.js';
import { execChatCommand, isChatCommand } from './chat.js';
import { isContinue } from './continue.js';
import { execDeactivateCommand, isDeactivateCommand } from './deactivate.js';
import { execDeployCommand, isDeployCommand } from './deploy.js';
import { execDrawCommand, isDrawCommand } from './draw.js';
Expand All @@ -16,6 +17,7 @@ export {
execVersionCommand,
isActivateCommand,
isChatCommand,
isContinue,
isDeactivateCommand,
isDeployCommand,
isDrawCommand,
Expand Down
2 changes: 2 additions & 0 deletions app/handle-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
execVersionCommand,
isActivateCommand,
isChatCommand,
isContinue,
isDeactivateCommand,
isDeployCommand,
isDrawCommand,
Expand All @@ -30,6 +31,7 @@ const handleEvent = async (event) => (
|| (isDrawCommand(event) && execDrawCommand(event))
|| (isActivateCommand(event) && execActivateCommand(event))
|| (isDeactivateCommand(event) && execDeactivateCommand(event))
|| (isContinue(event) && execChatCommand(event))
|| (isChatCommand(event) && execChatCommand(event))
|| ((await storage.getItem(SETTING_AI_ACTIVATED) && execChatCommand(event)))
|| event
Expand Down

0 comments on commit fa6a9c1

Please sign in to comment.