Slack

Add a Slack model with:

$ yarn add @xomlo/xomlo-models-slack

Init the Slack object like this:

import { Slack } from "@xomlo/xomlo-models-slack";

...
const Slack = new Slack(...);

Config object

const Slack = new Slack({
    token: "{my-slack-api-token}"
});

Reference:

.sendMessage()

This method will send your message to a given channel.

Arguments:

Returns:

void

Last updated