blob: 047999bb1869e38d7c9da9f5a2e6fd266a6b9b25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
META="text/gemini; charset=utf-8"
if [ -n "${QUERY_STRING}" ]; then
new_ptn="${PATH_INFO//\//}${QUERY_STRING}."
printf '20 %s\r\n' "$META"
printf '```\n'
while [ "$(pgrep geminict | wc -l)" > "10" ]; do
sleep 0.25s;
done
geminict "$new_ptn"
printf '```\n'
echo 'Please be patient, ct1986 is a slow bot and no more than 10 instances are allowed concurrently on the server.'
printf "=> gemini://l-3.space/ct1986/$new_ptn/ Enter next move"
else
printf "10 Enter starting move:\r\n"
fi;
|