use rcon
This commit is contained in:
10
bot.go
10
bot.go
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user