This commit is contained in:
quqiOnfree 2025-08-26 03:45:48 +08:00
parent 0effcb90d5
commit 13255dcb55
3 changed files with 8 additions and 6 deletions

View file

@ -65,5 +65,5 @@ def foramt_motd(data: str, weight: int) -> list[tuple[int, str, str]]:
while iter < data_size and data[iter] != "§" and data[iter] != "\n":
text += data[iter]
iter += 1
motd_list.append((len(text), "white", text))
motd_list.append(((iter - character_count * 2) / data_size * weight, "white", text))
return motd_list