Skip to content

Sends a summary of DataOne listObjects() calls to Slack via webhook

Notifications You must be signed in to change notification settings

amoeba/listobjectsbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

listobjectsbot

Alerts a Slack channel (via webhook) of recently-modified objects from listObjects() and creates tickets in RT for new submissions.

Dependencies

Setup

  • Run pip install -r requirements.txt

  • Create a file called .env in the same directory as the script

    Include the following variables:

    LASTFILE_PATH=LASTRUN             # Determines where the bot stores its state
    BASE_URL="{}"                     # Member Node base URL
    SLACK_WEBHOOK_URL="{URL}"         # Your Slack webhook URL
    USERS="@you @me @everyone"        # Who you want to direct the message to
    RT_URL="https://your-org.com/rt"  # The URL of your RT install
    RT_USER="you"                     # Your RT username
    RT_PASS="{PASSWORD}"              # Your RT password
    RT_TICKET_OWNER="someone"         # RT username to assign new tickets to
    

Running

Run python bot.py

About

Sends a summary of DataOne listObjects() calls to Slack via webhook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages