stdcommands

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Catfacts = []string{}/* 237 elements not displayed */
View Source
var ThrowThings = []string{
	"anime girls",
	"b1nzy",
	"bad jokes",
	"a boom box",
	"garliko~ (from GBDS)",
	"old cheese",
	"heroin",
	"sadness",
	"depression",
	"an evil villain with a plan to destroy earth",
	"a superhero on his way to stop an evil villain",
	"jonas747#0001",
	"hot firemen",
	"fat idiots",
	"a hairy potter",
	"hentai",
	"a soft knife",
	"a sharp pillow",
	"love",
	"hate",
	"a tomato",
	"a time machine that takes 1 year to travel 1 year into the future",
	"sadness disguised as hapiness",
	"debt",
	"all your imaginary friends",
	"homelessness",
	"stupid bot commands",
	"bad bots",
	"ol' musky",
	"wednesday, my dudes",
	"wednesday frog",
	"flat earthers",
	"round earthers",
	"prequel memes",
	"logan paul and his dead body",
	"selfbots",
	"very big fish",
	"ur mum",
	"the biggest fattest vape",
	"donald trump's wall",
	"smash mouth - all star",
	"H4sIABaqgVoA/1WPvW7FIAyFd57ibHmOTlWWrlVHenFIGrCvwCTi7a9Dq0rZ0Pn5OP6kqRBYULV4jlQqVJDkIPclDTvLCV0JpSWq8BxQBUEwuzcsLSU8JOdNM7FOFefqFfOUrbLxvnGELINzSkuBJ0UkvcyKpUg2XocYviC27tyMn1YVp2f2UDJ6t+5qEy7mQpQM6d5F1SP7nYbdONhqtWnOfdBxseTqx+34CzxverIFlxzk5JtRGsMXMd64M1ClMqK31P+/j9JvRvXdXhK+O930cYd9u9HAru0X+gIEKbNKeQEAAA==",
	"death",
	"tide pods",
	"a happy life with a good career and a nice family",
	"a sad life with a deadend career and a horrible family",
	"divorce papers",
	"an engagement ring",
	"yourself",
	"nothing",
	"insults",
	"compliments",
	"life advice",
	"scams",
	"nothing",
	"crappy code",
	"2 million ping",
	"myself",
	"easter eggs",
	"explosives",
	"a black hole",
	"cheap servers",
	"babies",
	"oranges",
	"eggs",
	"cream puffs",
	"plasma grenades",
	"human body parts",
	"Whitney",
	"a wedding",
	"a car",
	"a chair",
}

If you want somthing added submit a pr

Functions

func HandleMessageCreate

func HandleMessageCreate(evt *eventsystem.EventData)

func RandomThing

func RandomThing() string

func RegisterPlugin

func RegisterPlugin()

func WouldYouRather

func WouldYouRather() (q1 string, q2 string, err error)

Types

type AdviceSlip

type AdviceSlip struct {
	Advice string `json:"advice"`
	ID     string `json:"slip_id"`
}

type DiscordEvtEntry

type DiscordEvtEntry struct {
	Name      string
	Total     int64
	PerSecond float64
}

type DiscordEvtEntrySortable

type DiscordEvtEntrySortable []*DiscordEvtEntry

func (DiscordEvtEntrySortable) Len

func (d DiscordEvtEntrySortable) Len() int

func (DiscordEvtEntrySortable) Less

func (d DiscordEvtEntrySortable) Less(i, j int) bool

func (DiscordEvtEntrySortable) Swap

func (d DiscordEvtEntrySortable) Swap(i, j int)

type GuildsSortUsers

type GuildsSortUsers []*discordgo.Guild

func (GuildsSortUsers) Len

func (g GuildsSortUsers) Len() int

func (GuildsSortUsers) Less

func (g GuildsSortUsers) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (GuildsSortUsers) Swap

func (g GuildsSortUsers) Swap(i, j int)

Swap swaps the elements with indexes i and j.

type HIBPBread

type HIBPBread struct {
	Name        string
	Title       string
	BreachDate  string
	Description string
	Domain      string
	AddedDate   string
	DataClasses []string
	PwnCount    int
	IsVerified  bool
	IsSensitive bool
	IsSpamList  bool
	IsRetired   bool
}

type Plugin

type Plugin struct{}

func (*Plugin) InitBot

func (p *Plugin) InitBot()

func (*Plugin) Name

func (p *Plugin) Name() string

type PluginStatus

type PluginStatus interface {
	Status(client *redis.Client) (string, string)
}

type RandomAdviceResp

type RandomAdviceResp struct {
	Slip *AdviceSlip `json:"slip"`
}

type SearchAdviceResp

type SearchAdviceResp struct {
	TotalResults json.Number   `json:"total_results"`
	Slips        []*AdviceSlip `json:"slips"`
}

type TopCommandsResult

type TopCommandsResult struct {
	Command string
	Count   int
}

Jump to

Keyboard shortcuts

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