Documentation
¶
Index ¶
- Constants
- func Dice(c *irc.Client, e *irc.Event)
- func IsItDown(c *irc.Client, e *irc.Event)
- func Mentions(c *irc.Client, e *irc.Event)
- func Metar(c *irc.Client, e *irc.Event)
- func NewCTCPPlugin(m *mux.CTCPMux) error
- func NewChancePlugin(b *bot.Bot, m *mux.CommandMux) error
- func NewDBPlugin(b *bot.Bot) (*sqlx.DB, error)
- func NewDicePlugin(m *mux.MentionMux) error
- func NewForecastPlugin(b *bot.Bot, m *mux.CommandMux) error
- func NewKarmaPlugin(c *mux.CommandMux, b *irc.BasicMux, db *sqlx.DB) error
- func NewMathPlugin(m *mux.CommandMux) error
- func NewMentionsPlugin(m *mux.MentionMux) error
- func NewMetarPlugin(m *mux.CommandMux) error
- func NewURLPlugin(bm *irc.BasicMux, cm *mux.CommandMux) error
- func URLTitle(c *irc.Client, e *irc.Event)
- type CTCPPlugin
- type ChancePlugin
- type Coordinates
- type DBPlugin
- type DataBlock
- type DataPoint
- type Flags
- type ForecastCacheEntry
- type ForecastPlugin
- type ForecastResponse
- type KarmaPlugin
- type LastAddress
- type Location
- type LocationResponse
- type LocationResult
- type MentionsPlugin
- type MetarPlugin
Constants ¶
View Source
const FUNC = 57347
View Source
const NUM = 57346
Variables ¶
This section is empty.
Functions ¶
func NewCTCPPlugin ¶
func NewChancePlugin ¶
func NewChancePlugin(b *bot.Bot, m *mux.CommandMux) error
func NewDicePlugin ¶
func NewDicePlugin(m *mux.MentionMux) error
func NewForecastPlugin ¶
func NewForecastPlugin(b *bot.Bot, m *mux.CommandMux) error
func NewKarmaPlugin ¶
func NewMathPlugin ¶
func NewMathPlugin(m *mux.CommandMux) error
func NewMentionsPlugin ¶
func NewMentionsPlugin(m *mux.MentionMux) error
func NewMetarPlugin ¶
func NewMetarPlugin(m *mux.CommandMux) error
func NewURLPlugin ¶
func NewURLPlugin(bm *irc.BasicMux, cm *mux.CommandMux) error
Types ¶
type CTCPPlugin ¶
type CTCPPlugin struct{}
type ChancePlugin ¶
type ChancePlugin struct {
RouletteGunSize int
// contains filtered or unexported fields
}
type Coordinates ¶
type DataPoint ¶
type DataPoint struct {
Time int64
Summary string
Icon string
SunriseTime float64
SunsetTime float64
PrecipIntensity float64
PrecipIntensityMax float64
PrecipIntensityMaxTime float64
PrecipProbability float64
PrecipType string
PrecipAccumulation float64
Temperature float64
TemperatureMin float64
TemperatureMinTime float64
TemperatureMax float64
TemperatureMaxTime float64
DewPoint float64
WindSpeed float64
WindBearing float64
CloudCover float64
Humidity float64
Pressure float64
Visibility float64
Ozone float64
}
Basic structures from https://github.com/mlbright/forecast/blob/master/v2/forecast.go TODO: cleanup
type ForecastCacheEntry ¶
type ForecastCacheEntry struct {
Coordinates Coordinates
Created time.Time
Response ForecastResponse
}
type ForecastPlugin ¶
type ForecastPlugin struct {
Key string
}
type ForecastResponse ¶
type KarmaPlugin ¶
type KarmaPlugin struct {
// contains filtered or unexported fields
}
func (*KarmaPlugin) CleanedName ¶
func (p *KarmaPlugin) CleanedName(name string) string
func (*KarmaPlugin) GetKarmaFor ¶
func (p *KarmaPlugin) GetKarmaFor(name string) int
func (*KarmaPlugin) UpdateKarma ¶
func (p *KarmaPlugin) UpdateKarma(name string, diff int) int
type LastAddress ¶
type LocationResponse ¶
type LocationResult ¶
type LocationResult struct {
}
type MentionsPlugin ¶
type MentionsPlugin struct{}
type MetarPlugin ¶
type MetarPlugin struct{}
Click to show internal directories.
Click to hide internal directories.