kardbot

package
v0.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BotTokenEnv     = "KARDBOT_TOKEN"
	BotOwnerEnv     = "KARDBOT_OWNER_ID"
	TestbedGuildEnv = "KARDBOT_TESTBED_GUILD"
	Intents         = discordgo.IntentsAllWithoutPrivileged
)
View Source
const (
	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 MaxDiscordMsgLen uint64 = 2000

Variables

This section is empty.

Functions

func Block

func Block()

Block the current goroutine until a terminatiing signal is received

func BlockThenStop

func BlockThenStop()

BlockThenStop blocks the current goroutine until a terminatiing signal is received. When the signal is received, stop and clean up the bot.

func Run

func Run()

Run initializes and starts the bot.

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