Compare commits

...
3 Commits
Author SHA1 Message Date
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
+2 -2
View File
@@ -171,8 +171,8 @@ func broadcast(ctx disgoman.Context, server geeksbot.Server, message string) {
)
return
}
log.Printf(response)
if response == "Server recieved, But no response!!\r\n" {
log.Printf("%#v", 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),
)