Compare commits

...
5 Commits
Author SHA1 Message Date
Dustin Pianalto 1e88425853 force bot to run on node with label
CI / build (push) Has been cancelled
2021-07-19 13:06:16 -08:00
Dustin Pianalto eacdd455f9 force bot to run on node with label
CI / build (push) Has been cancelled
2021-07-19 12:49:57 -08:00
Dustin Pianalto 1e184c97a2 Test broadcast response
CI / build (push) Has been cancelled
2021-06-30 22:00:38 -08:00
Dustin Pianalto 8c2bb50637 Test broadcast response
CI / build (push) Has been cancelled
2021-06-30 21:54:35 -08:00
Dustin Pianalto 5f20f1b129 Test broadcast response
CI / build (push) Has been cancelled
2021-06-30 21:46:31 -08:00
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -34,3 +34,5 @@ spec:
secretKeyRef: secretKeyRef:
name: geeksbot name: geeksbot
key: discord_token key: discord_token
nodeSelector:
geeks: "yes"
+2 -2
View File
@@ -171,8 +171,8 @@ func broadcast(ctx disgoman.Context, server geeksbot.Server, message string) {
) )
return return
} }
log.Printf("%#v", response) log.Printf("%T - %#v", response, response)
if strings.Contains(response, "Server recieved, But no response!!") { if strings.Contains(response, "Server received, But no response!!") {
_, _ = ctx.Session.ChannelMessageEdit(ctx.Channel.ID, msg.ID, _, _ = ctx.Session.ChannelMessageEdit(ctx.Channel.ID, msg.ID,
fmt.Sprintf("**%s Broadcast Successful**", server.Name), fmt.Sprintf("**%s Broadcast Successful**", server.Name),
) )