UNPKG

reshuffle

Version:

Reshuffle is a fast, unopinionated, minimalist integration framework

22 lines (20 loc) 575 B
import { BaseConnector, EventConfiguration } from 'reshuffle-base-connector' import Reshuffle from '../Reshuffle' export default class SlackConnector extends BaseConnector { on(options: any, eventId: EventConfiguration['id']): EventConfiguration { return new EventConfiguration(eventId, this, {}) } send(message: string) { console.log(message) } start(app: Reshuffle) { this.app = app this.started = true } removeEvent(event: EventConfiguration) { delete this.eventConfigurations[event.id] } stop() { console.log('TODO stop') } }