~ysu/gemini-chatroom

ref: a680799a0b1808899ff69d862b47e068068da2ea gemini-chatroom/bin/chat0/index.gmi -rwxr-xr-x 260 bytes
a680799a — vps changed message formatting 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/dash

echo "20 text/gemini\r\n"
echo "# Chatroom 0"
echo "=> postuser post"
echo "=> post post anonymously"
echo "=> $GEMINI_URL refresh"
printf "\n"

echo ---
echo "\`\`\` Messages"
tac message_log | awk '$1 != '\n' {print $0}'
echo "\`\`\`"
echo ---