fix: some issue
This commit is contained in:
parent
5b33c3d0d8
commit
14be221b51
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
.env
|
.env
|
||||||
|
run.sh
|
||||||
|
@ -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())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user