kardbot

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BotTokenEnv         = "KARDBOT_TOKEN"
	BotOwnerEnv         = "KARDBOT_OWNER_ID"
	TestbedGuildEnv     = "KARDBOT_TESTBED_GUILD"
	Intents             = discordgo.IntentsAll
	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(traceEnabled bool)

Run initializes and starts the bot. Setting traceEnabled to true enables trace regions for profiling.

func RunAndBlock

func RunAndBlock(traceEnabled bool)

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