This commit is contained in:
unintendedfraud
2024-04-05 22:37:53 +02:00
parent 073e0d7a57
commit e66c1e7d86
+2 -2
View File
@@ -86,7 +86,7 @@ func (h Handler) OnMessageCreated(s *discordgo.Session, m *discordgo.MessageCrea
} }
} }
func (h Handler) addMessageToHistory(m *discordgo.Message, isHal bool) { func (h *Handler) addMessageToHistory(m *discordgo.Message, isHal bool) {
var role string var role string
if isHal { if isHal {
role = "system" role = "system"
@@ -125,7 +125,7 @@ func containHal(users []*discordgo.User, userID string) bool {
return false return false
} }
func (h Handler) updateUserHistoryCount(userID string) bool { func (h *Handler) updateUserHistoryCount(userID string) bool {
now := time.Now() now := time.Now()
u, ok := h.usersHistoryCount[userID] u, ok := h.usersHistoryCount[userID]