collect

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannelsData

func GetChannelsData(channelsArr []*discordgo.Channel)

GetChannelsData Filters the channel by it's type and then adds it to the channels table

func GetEmojisData

func GetEmojisData(emojis []*discordgo.Emoji)

GetEmojisData Inserts a new entry in the emojis table

func GetMembersData

func GetMembersData(members []*discordgo.Member)

GetMembersData Inserts a new entry in the members table

func GetMessageData

func GetMessageData(msg *discordgo.MessageCreate)

GetMessageData Inserts a new entries in the messages table

func GetMessagesData

func GetMessagesData(msgs []*discordgo.Message)

GetMessagesData Inserts a new entries in the messages table

func GetRP

func GetRP(presences []*discordgo.Presence)

Probably will change the structure of the table to be name and a list of users Who used the RP (TODO)

func GetRolesData

func GetRolesData(roles []*discordgo.Role)

GetRolesData Inserts a new entry in the roles table

func GetTextChannels

func GetTextChannels(channelsArr []*discordgo.Channel) []*discordgo.Channel

GetTextChannels Returns only text channels

func GetUsersData

func GetUsersData(members []*discordgo.Member)

GetUsersData Inserts a new entry in the users table

func InitMessagesTables

func InitMessagesTables()

InitMessagesTables Creates all tables necessary to process messages

func InitRPTable

func InitRPTable(db *sql.DB)

InitRPTable Creates the richPresencesByUser table

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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