diff --git a/.gitea/workflows/quotes.yaml b/.gitea/workflows/quotes.yaml new file mode 100644 index 0000000..90cff64 --- /dev/null +++ b/.gitea/workflows/quotes.yaml @@ -0,0 +1,24 @@ +name: QuotesBot +on: + schedule: + - cron: '35 */4 * * *' +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 quotes.py + run: + python quotes.py + env: + BOTS_QUOTESBOT_TOKEN: ${{ secrets.BOTS_QUOTESBOT_TOKEN }} + BOTS_ENDPOINT: ${{ secrets.BOTS_ENDPOINT }} + QUOTES_SOURCE: ${{ secrets.QUOTES_SOURCE }} diff --git a/README.md b/README.md index 5be1869..652dde1 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ # fyrfli's ActivityPub bots project -![](https://fyrfli.dev/fyrfli/bots/actions/workflows/dog_facts.yaml/badge.svg) ![](https://fyrfli.dev/fyrfli/bots/actions/workflows/quip.yaml/badge.svg) +![](https://fyrfli.dev/fyrfli/bots/actions/workflows/dog_facts.yaml/badge.svg) ![](https://fyrfli.dev/fyrfli/bots/actions/workflows/quip.yaml/badge.svg) ![](https://fyrfli.dev/fyrfli/bots/actions/workflows/quotes.yaml/badge.svg) ## the bots - [Dog facts](https://bots.fyrfli.social/@dogfacts) - [Quips](https://bots.fyrfli.social/@dayswithoutwhitenonsense) +- [Random Quotes](https://bots.fyrfli.social/@quotesbot)