Remove list from join/leave messages
This commit is contained in:
parent
0434bf5854
commit
bb9a9f7a9b
|
@ -16,8 +16,6 @@ for line in sys.stdin:
|
||||||
elif re.match(r".*?(\w+ (leaves|joins) game.*)", line):
|
elif re.match(r".*?(\w+ (leaves|joins) game.*)", line):
|
||||||
text = "<code>"
|
text = "<code>"
|
||||||
text += re.sub(r".*?(\w+ (leaves|joins) game\.).*", r"\1", line)
|
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>"
|
text += "</code>"
|
||||||
parse_mode = "HTML"
|
parse_mode = "HTML"
|
||||||
if text != "":
|
if text != "":
|
||||||
|
|
Loading…
Reference in New Issue