diff --git a/manifest.json b/manifest.json index a6f2a10..218d3e9 100644 --- a/manifest.json +++ b/manifest.json @@ -1,9 +1,7 @@ { "name": "ts-template", "description": "ts-template for UbiquityOS plugins.", - "ubiquity:listeners": [ - "issue_comment.created" - ], + "ubiquity:listeners": ["issue_comment.created", "issue_comment.deleted", "issue_comment.edited"], "commands": { "command1": { "ubiquity:example": "/command1 argument", @@ -23,8 +21,6 @@ "type": "string" } }, - "required": [ - "configurableResponse" - ] + "required": ["configurableResponse"] } -} \ No newline at end of file +} diff --git a/src/types/context.ts b/src/types/context.ts index 0a59f93..415eb70 100644 --- a/src/types/context.ts +++ b/src/types/context.ts @@ -9,7 +9,7 @@ import { Logs } from "@ubiquity-dao/ubiquibot-logger"; * * ubiquity:listeners: ["issue_comment.created", ...] */ -export type SupportedEventsU = "issue_comment.created"; +export type SupportedEventsU = "issue_comment.created" | "issue_comment.deleted" | "issue_comment.edited"; export type SupportedEvents = { [K in SupportedEventsU]: K extends WebhookEventName ? WebhookEvent : never;