Skip to content

Commit

Permalink
fix: lack of ping in forumer
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Nov 21, 2023
1 parent 6a8e771 commit ea6f29e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/forumer/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ func (v *Forumer) TrySendMsg(channel types.DiscordChannelID, new_post *forum_typ
// embed.Timestamp = string()
var content strings.Builder
content.WriteString(
fmt.Sprintf("%s, received email from %s\n",
pingMessage,
fmt.Sprintf("received email from %s\n",
fmt.Sprintf("[%s](<%s>)", new_post.PostAuthorName, new_post.PostAuthorLink)))
embed.Fields = append(embed.Fields, &discordgo.MessageEmbedField{
Name: "Matched tags",
Expand All @@ -195,7 +194,7 @@ func (v *Forumer) TrySendMsg(channel types.DiscordChannelID, new_post *forum_typ

purple_color := 10181046
embed.Color = purple_color
_, err := dg.ChannelMessageSendEmbed(string(channel), embed)
_, err := dg.ChannelMessageSendComplex(string(channel), &discordgo.MessageSend{Embeds: []*discordgo.MessageEmbed{embed}, Content: string(pingMessage)})
logus.CheckError(err, "failed sending msg")
return nil
})
Expand Down

0 comments on commit ea6f29e

Please sign in to comment.