From 44729ab57421336db4595ce1def4a65236d0e009 Mon Sep 17 00:00:00 2001 From: Camille Frantz Date: Tue, 8 Jul 2025 10:45:46 -0500 Subject: [PATCH] Add Quotes --- Quotes.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Quotes.md diff --git a/Quotes.md b/Quotes.md new file mode 100644 index 0000000..8799fa2 --- /dev/null +++ b/Quotes.md @@ -0,0 +1,27 @@ +# The Quotes Bot + +The QuotesBot reads from a Comma-Separated list (CSV) of quotes in a specific format and posts a random choice to an AcitivityPub account. +It will also post output to a pushover account if configured. + +The variables this code expects are: +``` +- QUOTES_SOURCE # URL to your CSV file; it expects an https endpoint +- BOTS_QUOTESBOT_TOKEN # Access token to your ActivityPub account +- BOTS_ENDPOINT # The URL of your ActivityPub instances (e.g. mastodon.social) +- PUSHOVER_USER_TOKEN # Optional +- PUSHOVER_APP_TOKEN # Optional +``` + +The CSV-formatted file is expected to be in this format: +``` +quote, author +"The quote goes here", "Author Name" +"Another quote goes here", "Author Name" +... +``` + +At the moment, it expects that your file is hosted somewhere online. The old code checked to see whether the file was local or not but since this code is executed here in the repository, it makes it difficult to host the file here. At least for the time being - that could change. + +You can follow this iteration of the bot at [@QuotesBot](https://bots.fyrfli.social/@quotesbot) + +[Back home](Home) \ No newline at end of file