This commit is contained in:
shoopea 2021-11-13 14:30:02 +08:00
parent 54d777934b
commit 69a6416c1b
2 changed files with 3 additions and 3 deletions

2
bot.go
View File

@ -311,7 +311,7 @@ func botSay(m *tb.Message) {
px := PacketAdminRCon{
Packet: Packet{PType: AdminPacketAdminRCon},
Command: fmt.Sprintf("say %s", msg),
Command: fmt.Sprintf("say \"%s\"", msg),
}
srv.Send(px.Bytes())

4
ttd.go
View File

@ -612,7 +612,7 @@ func (s *ServerTTD) ComputeClientTime() {
bot.SendChat(cfg.Telegram.ChatID, msg)
px := PacketAdminRCon{
Packet: Packet{PType: AdminPacketAdminRCon},
Command: fmt.Sprintf("say %s", msg),
Command: fmt.Sprintf("say \"%s\"", msg),
}
srv.Send(px.Bytes())
}
@ -621,7 +621,7 @@ func (s *ServerTTD) ComputeClientTime() {
bot.SendChat(cfg.Telegram.ChatID, msg)
px := PacketAdminRCon{
Packet: Packet{PType: AdminPacketAdminRCon},
Command: fmt.Sprintf("say %s", msg),
Command: fmt.Sprintf("say \"%s\"", msg),
}
srv.Send(px.Bytes())
}