import { Reaction , ReactionCanHandleOptions , ReactionHandleOptions } from './reaction' ; import { SponsorshipPayload } from '../../schemas/github/sponsorship-payload' ; export class SponsorshipCreated extends Reaction < SponsorshipPayload > { getStreamLabsMessage ( { payload } ) { return `🎉 *${ payload . sponsorship . sponsor . login }* is now a sponsor` ; } getTwitchChatMessage ( { payload } ) { return `🎉 ${ payload . sponsorship . sponsor . login } is now a sponsor` ; } canHandle ( { payload , event } ) { return event === 'sponsorship' && payload . action === 'created' ; } }