Documentation ¶
Overview ¶
Package plugins provides a collection of example (and usable) plugins for instances of slackscot
Package plugins provides a collection of example (and usable) plugins for instances of slackscot
Index ¶
Constants ¶
const (
// EmojiBannerPluginName holds identifying name for the emoji banner plugin
EmojiBannerPluginName = "emojiBanner"
)
const (
// FingerQuoterPluginName holds identifying name for the finger quoter plugin
FingerQuoterPluginName = "fingerQuoter"
)
const (
// KarmaPluginName holds identifying name for the karma plugin
KarmaPluginName = "karma"
)
const (
// OhMondayPluginName holds identifying name for the karma plugin
OhMondayPluginName = "ohMonday"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmojiBannerMaker ¶
EmojiBannerMaker holds the plugin data for the emoji banner maker plugin
func NewEmojiBannerMaker ¶
func NewEmojiBannerMaker(c *config.PluginConfig) (emojiBannerPlugin *EmojiBannerMaker, err error)
NewEmojiBannerMaker creates a new instance of the plugin. Note that since it creates a temporary directory to store fonts, the caller should make sure to defer Close on shutdown
func (*EmojiBannerMaker) Close ¶
func (e *EmojiBannerMaker) Close()
Close cleans up resources (temp font directory) used by the plugin
type FingerQuoter ¶
FingerQuoter holds the plugin data for the finger quoter plugin
func NewFingerQuoter ¶
func NewFingerQuoter(config *config.PluginConfig) (f *FingerQuoter, err error)
NewFingerQuoter creates a new instance of the plugin
type Karma ¶
Karma holds the plugin data for the karma plugin
func NewKarma ¶
func NewKarma(strStorer store.StringStorer) (karma *Karma)
NewKarma creates a new instance of the Karma plugin
type OhMonday ¶
OhMonday holds the plugin data for the Oh Monday plugin
func NewOhMonday ¶
func NewOhMonday(c *config.PluginConfig) (o *OhMonday, err error)
NewOhMonday creates a new instance of the OhMonday plugin