Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/team334/cd-slack
:loudspeaker: Chief Delphi slack bot
https://github.com/team334/cd-slack
bot chief-delphi slack
Last synced: 15 days ago
JSON representation
:loudspeaker: Chief Delphi slack bot
- Host: GitHub
- URL: https://github.com/team334/cd-slack
- Owner: Team334
- License: mit
- Created: 2017-04-16T03:25:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-22T13:33:09.000Z (almost 8 years ago)
- Last Synced: 2024-11-13T08:30:25.075Z (3 months ago)
- Topics: bot, chief-delphi, slack
- Language: JavaScript
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **cd-slack**: Chief Delphi Slack Bot
A slack bot that notifies your team about Chief Delphi posts. The bot can be triggered
by certain keywords or posts by a particular author.## Configuration
Use `config.js` to configure your bot. You can copy the sample config
`config.example.js` to `config.js` to get started.Sample config:
```js
module.exports = {
"slack_webhook_url": "",
"bot_username": "Chief Delphi Bot", // whatever you want
"bot_icon_emoji": ":first:", // the emoji to use as avatar
"default_channel": "#programming", // the channel to post in (by default)// how long to wait between updates in milliseconds
"refresh_rate": 15*1000, // 15 seconds// what keywords/authors trigger the bot, where to post notification,
// and who to notify
"triggers": [
{
"keywords": ["New York City", "NYC", "brooklyn"],
"channel": "#general"
},
{
"keywords": ["computer vision", "opencv", "neural networks"],
"authors": ["Tom Bottiglieri", "Jared Russell"],
"channel": "#programming",
"mention": "@august @eric"
},
{
"keywords": ["bamboozled", /gracious (professionalism|memes)/gi],
"channel": "#memes"
}
],// How the messages should be formatted.
"format_keyword": "New mention of *$keyword* by $author: <$url|$post>",
"format_author": "New post by *$author*: <$url|$post>"
}
```## Running
`$ node bot.js`
### To-Do
- [ ] Trigger bot when a member of a particular team posts.
- [ ] Get the entire post, not just preview
- [ ] Ability to subscribe to threads
- [x] More granular posting - target keywords towards certain channels & users.