Browse Source

Merge branch 'action-support' of sloum/gab2 into master

channels-redux
Sloom Sloum Sluom IV 3 years ago committed by Gitea
parent
commit
e6d767b140
  1. 7
      gab

7
gab

@ -30,7 +30,12 @@ def read_file(user, path, num_lines):
msg = f.readline().split("|", 1)
dt = msg[0].strip()
if len(msg) == 2 and float(dt) < time.time():
log[dt] = "\033[7m {} \033[0m {}\033[0m".format(user, msg[1].strip())
msg = msg[1].strip()
if msg[:3] == "/me":
log[dt] = "\033[7m * * * \033[0m \033[3m{}\033[0m".format(msg.replace("/me", user))
print(log[dt])
else:
log[dt] = "\033[7m {} \033[0m {}\033[0m".format(user, msg)
def list_messages(count="5"):

Loading…
Cancel
Save