count

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountCharacters

func CountCharacters(content string, mentions []*discordgo.User) int

CountCharacters Counts the number of characters in a string

func InitCharactersByChannelTable

func InitCharactersByChannelTable(db *sql.DB)

InitCharactersByChannelTable Creates the charactersByChannel table

func InitCharactersByUserTable

func InitCharactersByUserTable(db *sql.DB)

InitCharactersByUserTable Creates the charactersByUser table

func InitCharactersTable

func InitCharactersTable(db *sql.DB)

InitCharactersTable Creates the characters table

func ProccessCharacters

func ProccessCharacters(message *discordgo.Message) map[string]int

ProccessCharacters Gets each individual character/emoji and updates unicode emoji uses

func UpdateCounters

func UpdateCounters(message *discordgo.Message)

UpdateCounters Updates the counted characters

Types

This section is empty.

Jump to

Keyboard shortcuts

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