Compare commits

..
6 Commits
Author SHA1 Message Date
Dustin Pianalto 5f20f1b129 Test broadcast response
CI / build (push) Has been cancelled
2021-06-30 21:46:31 -08:00
Dustin Pianalto 8a9373637f Test broadcast response
CI / build (push) Has been cancelled
2021-06-30 21:10:53 -08:00
Dustin Pianalto b1f705746e Test broadcast response
CI / build (push) Has been cancelled
2021-06-30 21:00:43 -08:00
Dustin Pianalto 8893cc62f4 Test broadcast response
CI / build (push) Has been cancelled
2021-06-30 20:56:51 -08:00
Dustin Pianalto 0bc5953c65 Test broadcast response
CI / build (push) Has been cancelled
2021-06-30 14:51:04 -08:00
Dustin Pianalto 821ede69cf Test broadcast response
CI / build (push) Has been cancelled
2021-06-30 14:34:03 -08:00
+3 -1
View File
@@ -2,6 +2,7 @@ package arcon
import (
"fmt"
"log"
"strings"
"github.com/dustinpianalto/disgoman"
@@ -170,7 +171,8 @@ func broadcast(ctx disgoman.Context, server geeksbot.Server, message string) {
)
return
}
if response == "Server recieved, But no response!!" {
log.Printf("%T - %#v", response, response)
if strings.Contains(response, "Server recieved, But no response!!") {
_, _ = ctx.Session.ChannelMessageEdit(ctx.Channel.ID, msg.ID,
fmt.Sprintf("**%s Broadcast Successful**", server.Name),
)