Plugin for snarl that presents some information to new users.
npm install snarl-welcome```
npm install snarl-welcome
Finally, add the following values to config/index.json:
`js`
{
"name": "snarl",
"plugins": ["welcome"], // add the "welcome" plugin here
"store": "data/store",
"slack": {
"token": "xoxb-1337-some-token"
},
"welcome": "Hello there, {{user}}! Welcome to the community.", // modify to suit your needs
"debug": false
}
If you'd like, you can even include an array of messages:
`js`
{
"name": "snarl",
"plugins": ["welcome"], // add the "welcome" plugin here
"store": "data/store",
"slack": {
"token": "xoxb-1337-some-token"
},
"welcome": [
"Hey there, {{user}}!",
"Welcome to the community."
],
"debug": false
}
```
{{channel:SOME_CHANNEL_NAME}}
That's all there is to it. Enjoy!