https://github.com/semaphorep/datacruncher_slackbot
Slack Bot for the GPIES Data Cruncher
https://github.com/semaphorep/datacruncher_slackbot
astronomy bot data-cruncher exoplanets geminiplanetimager python slack slackbot
Last synced: 5 months ago
JSON representation
Slack Bot for the GPIES Data Cruncher
- Host: GitHub
- URL: https://github.com/semaphorep/datacruncher_slackbot
- Owner: semaphoreP
- License: bsd-3-clause
- Created: 2016-04-18T04:25:32.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T17:49:35.000Z (about 8 years ago)
- Last Synced: 2023-08-04T13:22:54.809Z (almost 3 years ago)
- Topics: astronomy, bot, data-cruncher, exoplanets, geminiplanetimager, python, slack, slackbot
- Language: Python
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The GPIES Data Cruncher Slack Bot
This is an automated bot to allow the GPIES Data Cruncher chat on Slack.
### Requirements
* SlackClient python library
* Slacker python library
* astropy, numpy
* pyephem
* watchdog
* websocket-client
### Setup
You need to make a `config.ini` file that populates the same fields as `config.ini.deafult`. The token can be obtained from Slack. The username requires parsing a chat message received with the Slack API that has @data_cruncher in the message. In the message, @data_cruncher will be replaced with @(some characters) and (some characters) is actually the chat ID for that username.
### Running it
Currently, the bot is set up to run with both the real-time `ChatResponder` and the `NewImagerPoster` (which runs when a new PSF subtraction is complete) by just executing the following command.
```
$ python bot.py
```