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 ¶
Functions ¶
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)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.