modified white nonsense bot code to be used with any text file with a list of sayings; added notify function to globals and made pushover optional

This commit is contained in:
2025-06-09 14:41:59 -05:00
parent d799e0bae1
commit 990c918c7a
4 changed files with 73 additions and 14 deletions

View File

@ -0,0 +1,30 @@
name: QuipBot
on:
# push
# workflow_dispatch:
schedule:
- cron: '18 */8 * * *'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run quip.py
run:
python quip.py
env:
BOTS_ENDPOINT: ${{ secrets.BOTS_ENDPOINT }}
PUSHOVER_ENDPOINT: ${{ secrets.PUSHOVER_ENDPOINT }}
PUSHOVER_USER_TOKEN: ${{ secrets.PUSHOVER_USER_TOKEN }}
PUSHOVER_BOTS_TOKEN: ${{ secrets.PUSHOVER_BOTS_TOKEN }}
QUIP_FILE: ${{ secrets.QUIP_FILE }}
QUIP_TOKEN: ${{ secrets.QUIP_TOKEN }}
QUIP_TAGS: ${{ secrets.QUIP_TAGS }}