This commit is contained in:
shoopea
2021-11-13 14:23:40 +08:00
parent 11ec55ba70
commit ccd41c2e1b
3 changed files with 7 additions and 27 deletions

10
bot.go
View File

@@ -309,13 +309,9 @@ func botSay(m *tb.Message) {
msg := r.ReplaceAllString(m.Text, "${Message}")
px := PacketServerChat{
Packet: Packet{PType: AdminPacketServerChat},
ActionID: AdminNetworkActionChat,
DestinationID: AdminDestinationTypeBroadcast,
ClientID: 4294967295,
Message: msg,
Amount: 0,
px := PacketAdminRCon{
Packet: Packet{PType: AdminPacketAdminRCon},
Command: fmt.Sprintf("say %s", msg),
}
srv.Send(px.Bytes())