going-flying.com gemini git repository
93ce48980c26c112a637bcb14d4452e379a66f2c - Matthew Ernisse - 1595901928
some tweaks
diff --git a/cgi-bin/bofh.py b/cgi-bin/bofh.py index 173a155..01aeed5 100755 --- a/cgi-bin/bofh.py +++ b/cgi-bin/bofh.py @@ -61,4 +61,8 @@ if __name__ == '__main__': max = len(excuses) print('20 text/plain\r\n') + print() print(excuses[random.randint(0, max)]) + print() + print('BOFH © Simon Travaglia') + print('Excuses from http://pages.cs.wisc.edu/~ballard/bofh/excuses') diff --git a/cgi-bin/vfdsay.py b/cgi-bin/vfdsay.py index 0448517..028340d 100755 --- a/cgi-bin/vfdsay.py +++ b/cgi-bin/vfdsay.py @@ -60,6 +60,16 @@ if __name__ == '__main__': print(f'50 {e} in input\r\n') sys.exit(0) + try: + resp = requests.get( + 'http://wy60.internal.ub3rgeek.net/update', + params={'msg': qs} + ) + resp.raise_for_response() + except Exception as e: + print('40 Error connecting to VFD: {e}\r\n') + sys.exit(0) + print("20 text/gemini\r\n") print(f'''``` [0m