update call
This commit is contained in:
parent
a394767832
commit
bd1b8da2f7
8
main.go
8
main.go
@ -138,7 +138,7 @@ func SanitizeClusterMessage(message string) ClusterMessage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func sendTelnetMessage(conn net.Conn, message string) {
|
func sendTelnetMessage(conn net.Conn, message string) {
|
||||||
if !strings.HasPrefix(message, "XV9Q") {
|
if !strings.HasPrefix(message, "F4BPO") {
|
||||||
time.Sleep(2 * time.Second)
|
time.Sleep(2 * time.Second)
|
||||||
}
|
}
|
||||||
_, err := conn.Write([]byte(message + "\n"))
|
_, err := conn.Write([]byte(message + "\n"))
|
||||||
@ -210,12 +210,12 @@ func main() {
|
|||||||
|
|
||||||
// Send Call to ID to the Server
|
// Send Call to ID to the Server
|
||||||
if message != "" && strings.Contains("Please enter your call:", message) {
|
if message != "" && strings.Contains("Please enter your call:", message) {
|
||||||
go sendTelnetMessage(conn, "XV9Q-3")
|
go sendTelnetMessage(conn, "F4BPO-2")
|
||||||
login = true
|
login = true
|
||||||
}
|
}
|
||||||
|
|
||||||
if message != "" && strings.Contains("login:", message) {
|
if message != "" && strings.Contains("login:", message) {
|
||||||
go sendTelnetMessage(conn, "XV9Q-3")
|
go sendTelnetMessage(conn, "F4BPO-2")
|
||||||
login = true
|
login = true
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If calls is in the DX List then send a Gotify notification
|
// If calls is in the DX List then send a Gotify notification
|
||||||
if sMess.DX != "" && sMess.From == "XV9Q" && strings.Contains(DX, sMess.DX) {
|
if sMess.DX != "" && sMess.From == "F4BPO" && strings.Contains(DX, sMess.DX) {
|
||||||
sendToGotify("Spot", sMess, 5, *cfg)
|
sendToGotify("Spot", sMess, 5, *cfg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user