import { Reaction , ReactionHandleOptions , ReactionCanHandleOptions } from './reaction' ; import { IssuePayload } from '../../schemas/github/issue-payload' ; export class IssueOpened extends Reaction < IssuePayload > { getStreamLabsMessage ( { payload } ) { return `*${ payload . sender . login }* opened a issue in *${ payload . repository . full_name }*` ; } getTwitchChatMessage ( { payload } ) { return `${ payload . sender . login } opened a issue in ${ payload . issue . html_url }` ; } canHandle ( { payload , event } ) { return event === 'issues' && payload . action === 'opened' ; } }