Clone
2
Quips
Camille Frantz edited this page 2025-06-09 14:56:27 -05:00

The Quips Bot

This piece of code simply reads a text file with a list of sayings (one on each line), chooses a random line, and posts to an AcitivityPub account. It will also post output to a pushover account if configured.

The variables this code expects are:

- QUIP_FILE                 # URL to your text file; it expects an https endpoint
- QUIP_TOKEN                # Access token to your ActivityPub account
- QUIP_TAGS                 # Additional tags you want posted; the code posts with a "#Bot" tag regardless of this value
- BOTS_ENDPOINT             # The URL of your ActivityPub instances (e.g. mastodon.social)
- PUSHOVER_USER_TOKEN       # Optional
- PUSHOVER_APP_TOKEN        # Optional

Currently, I use this code to post to the White Nonsense Bot account

Back home