smileystats

package
v0.0.0-...-56a85f5 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

package smileystats provides plugin to calculate usage statistics of emoticons

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Query(query string, args ...interface{}) (*sql.Rows, error)
}

type SmileyStats

type SmileyStats struct {
	// contains filtered or unexported fields
}

SmileyStats is struct which represents plugin configuration

func NewSmileyStats

func NewSmileyStats(conn DB, blacklist map[string]string) *SmileyStats

NewSmileyStats returns set up instance of SmileyStats

func (*SmileyStats) GetInfo

func (sm *SmileyStats) GetInfo() map[string]string

func (*SmileyStats) MessageCreate

func (sm *SmileyStats) MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)

MessageCreate is method which triggers when message sent to discord chat

func (*SmileyStats) MessageReactionAdd

func (sm *SmileyStats) MessageReactionAdd(s *discordgo.Session, mr *discordgo.MessageReactionAdd)

Jump to

Keyboard shortcuts

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