Remove list from join/leave messages

This commit is contained in:
Ceda EI 2019-01-29 03:03:45 +05:30
parent 0434bf5854
commit bb9a9f7a9b
1 changed files with 0 additions and 2 deletions

View File

@ -16,8 +16,6 @@ for line in sys.stdin:
elif re.match(r".*?(\w+ (leaves|joins) game.*)", line):
text = "<code>"
text += re.sub(r".*?(\w+ (leaves|joins) game\.).*", r"\1", line)
text += "\nList of players: \n"
text += "\n".join(re.sub(r".*?: ", "", line).split(" "))
text += "</code>"
parse_mode = "HTML"
if text != "":