Migrate deployment to Gitea Actions and Portainer
Build and Push Container / docker (push) Successful in 24m19s

This commit is contained in:
2026-03-22 11:43:22 -08:00
parent c611065fde
commit 3b0bf0866a
10 changed files with 178 additions and 95 deletions
+5 -7
View File
@@ -6,8 +6,8 @@ import (
"strconv"
"time"
"github.com/bwmarrin/discordgo"
"github.com/dustinpianalto/prepbot/internal/discord_utils"
"github.com/dustinpianalto/discordgo"
"gitea.wayfinderak.com/wayfinderak/prepbot/internal/discord_utils"
)
var joinChannelID = "768571410133418037"
@@ -44,8 +44,6 @@ func OnGuildMemberAddLogging(s *discordgo.Session, member *discordgo.GuildMember
Inline: false,
}
joinTime, _ := member.JoinedAt.Parse()
embed := &discordgo.MessageEmbed{
Title: title,
Description: fmt.Sprintf("%v (%v) Has Joined the Server", member.User.Mention(), member.User.ID),
@@ -53,9 +51,9 @@ func OnGuildMemberAddLogging(s *discordgo.Session, member *discordgo.GuildMember
Thumbnail: thumb,
Footer: &discordgo.MessageEmbedFooter{
Text: fmt.Sprintf("Current Member Count: %v", guild.MemberCount),
IconURL: guild.IconURL(),
IconURL: guild.IconURL("1024"),
},
Timestamp: joinTime.Format(time.RFC3339),
Timestamp: member.JoinedAt.Format(time.RFC3339),
Fields: []*discordgo.MessageEmbedField{field},
}
s.ChannelMessageSendEmbed(joinChannelID, embed)
@@ -117,7 +115,7 @@ func OnGuildMemberRemoveLogging(s *discordgo.Session, member *discordgo.GuildMem
Thumbnail: thumb,
Footer: &discordgo.MessageEmbedFooter{
Text: fmt.Sprintf("Current Member Count: %v", guild.MemberCount),
IconURL: guild.IconURL(),
IconURL: guild.IconURL("1024"),
},
Timestamp: timeNow.Format(time.RFC3339),
}