feat: msg notify to TG Group

This commit is contained in:
Vaala Cat
2023-06-27 15:21:29 +08:00
parent d4f070f9ec
commit c6473fd68a
2 changed files with 11 additions and 0 deletions

View File

@@ -92,6 +92,9 @@ func onSystemMsg(msg chat.Message, overlay bool) error {
func onPlayerMsg(msg chat.Message, validated bool) error {
go func() {
if msg.Translate != "commands.message.display.incoming" {
return
}
log.Printf("Player: %s", msg)
s := strings.Split(msg.String(), " ")
if len(s) > 1 {