emoji

package
v0.0.0-...-8a39caa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitEmojisByChannelTable

func InitEmojisByChannelTable(db *sql.DB)

InitEmojisByChannel Creates the emojisByChannel table

func InitEmojisByUserTable

func InitEmojisByUserTable(db *sql.DB)

InitEmojisByUserTable Creates the emojisByUser table

func ProccessEmojis

func ProccessEmojis(content string) map[string]int

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

func TransformToString(reMap map[string]int) string

TransformToString Transforms a reactions/emojis map into a DB friendly string

func UpdateOrCreateEmoji

func UpdateOrCreateEmoji(message *discordgo.Message) string

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

func UpdateOrCreateReaction(message *discordgo.Message) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL