From 9172f631c99244f891009458718a9c2fe52a4052 Mon Sep 17 00:00:00 2001 From: chengtripp <124098378+chengtripp@users.noreply.github.com> Date: Tue, 31 Jan 2023 21:58:51 +0000 Subject: [PATCH] Create message_board.mu --- pages/message_board.mu | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pages/message_board.mu diff --git a/pages/message_board.mu b/pages/message_board.mu new file mode 100644 index 0000000..47d1da2 --- /dev/null +++ b/pages/message_board.mu @@ -0,0 +1,21 @@ +#!/bin/python3 +import time +import redis +r = redis.Redis(db=2, decode_responses=True) + +print('`!`F222`Bddd`cSolarExpress Message Board') + +print('-') +print('`a`b`f') +print("") +print("To add a message to the board just converse with the SolarExpress Message Board at , peers are assigned a unique username") +print("Built with Python and Redis") +time_string = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time())) +print("Last Updated: {}".format(time_string)) +print("") +print('>Messages') +print(" Date Time Username Message") +for i in range(0, r.llen('message_board_general')): + message_content = r.lindex('message_board_general', i) + print("`a{}".format(message_content)) + print("")