https://github.com/ssarcandy/slack-for-apod
slack bot that post Astronomy Picture of the Day
https://github.com/ssarcandy/slack-for-apod
apod bot node-apod
Last synced: 29 days ago
JSON representation
slack bot that post Astronomy Picture of the Day
- Host: GitHub
- URL: https://github.com/ssarcandy/slack-for-apod
- Owner: SSARCandy
- License: mit
- Created: 2016-06-23T13:36:44.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-05T15:41:25.000Z (over 9 years ago)
- Last Synced: 2025-02-23T09:15:42.518Z (over 1 year ago)
- Topics: apod, bot, node-apod
- Language: JavaScript
- Homepage: http://ssarcandy.tw/slack-for-APOD/
- Size: 137 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slack-for-APOD
Slack bot that post Astronomy Picture of the Day.

## Usage
```bash
node index.js [lang]
```
Support language: see [node-apod](https://github.com/SSARCandy/node-apod#support-language)
## Installation
1. Clone it & install dependences
```bash
git clone https://github.com/SSARCandy/slack-for-APOD.git && cd slack-for-APOD
npm install
```
2. setup `config.js`
```bash
cp config/config-template.js config/config.js
# Fillup HOOK_URL, NASA_API_KEY
vim config/config.js
```
3. Run it or use crontab
- Run once, `node index.js`
- Run with crontab, add `0 12 * * * node ~/slack-for-APOD/index.js` to crontab. (post APOD everyday at noon)
## Reference
- [node-apod](https://github.com/SSARCandy/node-apod)
- [Get api key for NASA Open API](https://api.nasa.gov/index.html#apply-for-an-api-key)
- [Setting Incoming Webhooks in Slack](https://slack.com/apps/A0F7XDUAZ-incoming-webhooks)