Skip to content

Commit

Permalink
chore: change issue command check
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Dec 2, 2024
1 parent 90028df commit f4a193b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/github/handlers/issue-comment-created.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import { postHelpCommand } from "./help-command";

export default async function issueCommentCreated(context: GitHubContext<"issue_comment.created">) {
const body = context.payload.comment.body.trim().toLowerCase();
if (body.startsWith(`@ubiquityos`)) {
await commandRouter(context);
}
if (body.startsWith(`/help`)) {
await postHelpCommand(context);
} else if (body.startsWith(`@ubiquityos`)) {
await commandRouter(context);
}
}

Expand Down

0 comments on commit f4a193b

Please sign in to comment.