misc

package
v0.0.0-...-ba647bc Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmbedLimitTitle       = 256
	EmbedLimitDescription = 2048
	EmbedLimitFieldValue  = 1024
	EmbedLimitFieldName   = 256
	EmbedLimitField       = 25
	EmbedLimitFooter      = 2048
	EmbedLimit            = 4000
)

Variables

This section is empty.

Functions

func CreateBasicEmbed

func CreateBasicEmbed(title string, isWithFooter bool) *discordgo.MessageEmbed

Types

type Config

type Config struct {
	Token   string `json:"token"`
	Prefix  string `json:"prefix"`
	Delay   int    `json:"delay`
	Guild   string `json:guild`
	Channel string `json:channel`
}

func ParseConfigFromJSONFile

func ParseConfigFromJSONFile(fileName string) (c *Config, err error)

type Keeper

type Keeper struct {
	Guild   string
	Channel string
	Offset  int
	Session *discordgo.Session
}

func (*Keeper) AwakeBOT

func (k *Keeper) AwakeBOT()

Jump to

Keyboard shortcuts

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