https://github.com/anthonyec/slackmark
Slack notifications for Dropmark.
https://github.com/anthonyec/slackmark
Last synced: about 1 year ago
JSON representation
Slack notifications for Dropmark.
- Host: GitHub
- URL: https://github.com/anthonyec/slackmark
- Owner: anthonyec
- Created: 2015-05-28T07:21:56.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-05T15:51:36.000Z (almost 11 years ago)
- Last Synced: 2025-02-13T00:26:42.807Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.23 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slackmark - Slack notifications for Dropmark 
Slackmark is a node server that checks Dropmark every so often and posts to a Slack channel of your choice when there's something new.
## Setup
Create a file called config.js at the root and fill in the details:
```JavaScript
module.exports = {
username: '', // Username for dropmark
password: '', // Password for dropmark
token: '', // Token for Slack
channel: '', // Slack channel
millis: 5 * 60 * 1000 // How often Slackmark should check Dropmark
}
```
Install the dependencies
```bash
$ npm install
```
Then run the index.js file
```bash
$ node index.js
```
Then that's it really. Sort of just threw this together one night so it's pretty rough at the moment.
## CLI Commands
When index.js is running, you can use these CLI commands to do things:
```
check - Forces a manual Dropmark check
say [message] - Sends a message to the channel as Slackmark bot
config [key] [value] - Edit the config at runtime.
Note that changes are lost once you terminate Slackmark
```
## HELP SLACKMARK BOT TOOK OVER AND IS ON A MURDEROUS RAMPAGE!!
Hold CTRL/CMD + C to terminate index.js
## Todo
- [ ] Crop thumbnails so they are nice and big and not super tall
- [ ] Rewrite the whole thing so it's more organised
- [ ] Add ablity to add filters for specific item attributes (e.g if someone adds a video type then post to the video channel in slack)
- [ ] Add broken thumbnail detection (probably more effort than it's worth)
- [ ] Cron job those timeouts maybe (part of rewrite)