fix: some issue

This commit is contained in:
VaalaCat 2023-05-17 06:51:12 +00:00
parent 5b33c3d0d8
commit 14be221b51
2 changed files with 1 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.env .env
run.sh

View File

@ -13,7 +13,6 @@ import (
"github.com/Tnze/go-mc/bot/msg" "github.com/Tnze/go-mc/bot/msg"
"github.com/Tnze/go-mc/bot/playerlist" "github.com/Tnze/go-mc/bot/playerlist"
"github.com/Tnze/go-mc/chat" "github.com/Tnze/go-mc/chat"
"github.com/sirupsen/logrus"
) )
var ( var (
@ -75,7 +74,6 @@ func onPlayerMsg(msg chat.Message, validated bool) error {
log.Printf("Player: %s", msg) log.Printf("Player: %s", msg)
s := strings.Split(msg.String(), " ") s := strings.Split(msg.String(), " ")
if len(s) > 1 { if len(s) > 1 {
logrus.Error(s[0])
if s[0] != fmt.Sprintf("<%v>", conf.GetBotSettings().MCBotName) { if s[0] != fmt.Sprintf("<%v>", conf.GetBotSettings().MCBotName) {
tgbot.SendMsg(msg.String()) tgbot.SendMsg(msg.String())
} }