Skip to content

semaphoreP/datacruncher_slackbot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published

Languages