JSPM

skellington-welcome

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q26801F
  • License MIT

A Skellington plugin to DM a user with a welcome message

Package Exports

  • skellington-welcome

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (skellington-welcome) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

skellington-welcome

Build Status Coverage Status

A Skellington plugin to DM a user with a welcome message.

Usage

Initialize the plugin with a config containing your welcome text:

require('skellington')({
  plugins: [
    require('skellington-welcome')({text: 'Welcome to our awesome Slack team!'})
  ]}
);

When a new users joins your team, your Skellington bot will DM them with your message.

Using a Welcome Post

Instead of a plain text welcome message you can also upload a post. Posts can include markdown, so this option is nice if you want a richer message.

require('skellington')({
  plugins: [
    require('skellington-welcome')({
      type: 'post',
      title: 'Hey there cool person', // optional, defaults to "Welcome"
      text: fs.readFileSync('welcome.md')
    })
  ]
});

Help

Just DM your bot with welcome and it will reply with the welcome text.