Add Quips
16
Quips.md
Normal file
16
Quips.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# 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](https://bots.fyrfli.social/@dayswithoutwhitenonsense) account
|
Reference in New Issue
Block a user