Documentation ¶
Index ¶
- func InitEmojisByChannelTable(db *sql.DB)
- func InitEmojisByUserTable(db *sql.DB)
- func ProccessEmojis(content string) map[string]int
- func ProccessReactions(reactions []*discordgo.MessageReactions) map[string]int
- func TransformToString(reMap map[string]int) string
- func UpdateOrCreateEmoji(message *discordgo.Message) string
- func UpdateOrCreateReaction(message *discordgo.Message) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitEmojisByChannelTable ¶
InitEmojisByChannel Creates the emojisByChannel table
func InitEmojisByUserTable ¶
InitEmojisByUserTable Creates the emojisByUser table
func ProccessEmojis ¶
ProccessEmojis Gets all emojis and returns them in a map[string]int
func ProccessReactions ¶
func ProccessReactions(reactions []*discordgo.MessageReactions) map[string]int
ProccessReactions Gets all reactions and returns them in a map[string]int
func TransformToString ¶
TransformToString Transforms a reactions/emojis map into a DB friendly string
func UpdateOrCreateEmoji ¶
UpdateOrCreateEmoji Updates or creates a used emoji in the emojis table Returns a string to be used in the messages table with all the emojis used
func UpdateOrCreateReaction ¶
UpdateOrCreateReaction Updates or creates a used reaction in the emojis table Returns a string to be used in the messages table with all the reactions used
Types ¶
This section is empty.