kardbot

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BotTokenEnv         = "KARDBOT_TOKEN"
	BotOwnerEnv         = "KARDBOT_OWNER_ID"
	TestbedGuildEnv     = "KARDBOT_TESTBED_GUILD"
	Intents             = discordgo.IntentsAllWithoutPrivileged
	ImgflipUserEnv      = "IMGFLIP_API_USERNAME"
	ImgflipPassEnv      = "IMGFLIP_API_PASSWORD"
	HuggingFaceTokenEnv = "HUGGING_FACE_TOKEN"
)
View Source
const (
	RollCmd          = "roll"
	RollSubCmdDnD    = "dnd"
	RollSubCmdCustom = "custom"

	MinDieSides uint64 = 2 // What the hell would a 1-sided die be? A black hole?
	DieStartVal uint64 = 1 // Dice numbering starts at this value
)
View Source
const AssetsDir string = "./assets"
View Source
const InteractionResponseFlagEphemeral = uint64(1 << 6)
View Source
const MaxDiscordMsgLen uint64 = 2000
View Source
const PastaConfigFile = "config/pasta.json"
View Source
const (
	StoryTimeConfigFile = "config/storytime.json"
)
View Source
const WednesdayAssetsDir string = AssetsDir + "/wednesday"

Variables

View Source
var (
	IsNotNumericRegex = func() *regexp.Regexp { return nil }
	IsNumericRegex    = func() *regexp.Regexp { return nil }
)

Functions

func Block

func Block()

func MaxOf

func MaxOf(vars ...int) int

func MinOf

func MinOf(vars ...int) int

func RandomBoolean

func RandomBoolean() bool

func Run

func Run()

Run initializes and starts the bot. Returns a WaitGroup

func RunAndBlock

func RunAndBlock()

func Stop

func Stop()

Stop and clean up.

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