💾 Archived View for tilde.club › ~filip › tech › script › gemini_guestbook › gemini_guestbook.gmi captured on 2022-07-16 at 14:03:26. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

gemini_guestbook

A bash script to run a simple Gemini guestbook.

Usage

Set the SCRIPT's variables (GUESTBOOK_PATH, GUESTBOOK_URL, GUESTBOOK_MESSAGES_START_LINE, and MAX_MESSAGES), add a link to it in the GUESTBOOK, and enable GUESTBOOK writing permission.

Download

gemini_guestbook

Example

The script (`guestbook`) and the guestbook (`guestbook.gmi`) are placed in the same directory.

Script variables:

GUESTBOOK_PATH="guestbook.gmi"
GUESTBOOK_URL="gemini://tilde.club/~filip/tech/script/gemini_guestbook/guestbook.gmi"
GUESTBOOK_MESSAGES_START_LINE=7
MAX_MESSAGES=100

Guestbook heading:

# Guestbook

=>guestbook Leave a message

# Messages

Go to the example guestbook

Back matter

External links

<1> Gemini guestbook in Python