Alerts a Slack channel (via webhook) of recently-modified objects from
listObjects()
and creates tickets in
RT for new submissions.
- I have developed and tested this with Python 3.5.1
- Extra packages (install via requirements.txt):
-
Run
pip install -r requirements.txt
-
Create a file called
.env
in the same directory as the scriptInclude 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
Run python bot.py