Update deployment and action

This commit is contained in:
Dustin Pianalto
2021-10-02 18:28:05 -08:00
parent 52719a1543
commit 6bcd17e5e3
3 changed files with 52 additions and 21 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ func CleanAmazonURLs(s *discordgo.Session, message *discordgo.MessageCreate) {
}
func moveNewsLinks(s *discordgo.Session, message *discordgo.MessageCreate) {
linkChannel := "784855106239332352"
chatChannel := "777679317878177804"
linkChannel := os.Getenv("LINK_CHANNEL")
chatChannel := os.Getenv("CHAT_CHANNEL")
if message.ChannelID == chatChannel {
_, err := sendWebhook(s, message, linkChannel, message.Content)
if err != nil {