skeleton

package
v0.0.0-...-fb5ee28 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeoutSec = 10
	RedColor   = 15548997
)

Variables

This section is empty.

Functions

func GenerateRandomMessageColor

func GenerateRandomMessageColor() int

Types

type BotData

type BotData struct {
	logger.Logger
	// contains filtered or unexported fields
}
var Bot BotData

func (*BotData) GetDatabase

func (bot *BotData) GetDatabase() *database.Database

func (BotData) GetGuildDataFromId

func (bot BotData) GetGuildDataFromId(guildId string) *discordgo.Guild

func (BotData) GetID

func (bot BotData) GetID() string

func (BotData) GetMention

func (bot BotData) GetMention() string

func (BotData) GetSession

func (bot BotData) GetSession() *discordgo.Session

func (BotData) GetUser

func (bot BotData) GetUser() *discordgo.User

func (*BotData) InitDatabase

func (bot *BotData) InitDatabase()

func (*BotData) RegisterGuild

func (bot *BotData) RegisterGuild(guild *discordgo.Guild)

func (*BotData) RemoveGuild

func (bot *BotData) RemoveGuild(guildId string)

func (*BotData) RetrieveInfo

func (bot *BotData) RetrieveInfo() (err error)

func (BotData) SendDelayedErrorMessage

func (bot BotData) SendDelayedErrorMessage(channelId, message string)

func (BotData) SendDelayedInternalServerErrorMessage

func (bot BotData) SendDelayedInternalServerErrorMessage(channelId string)

func (BotData) SendDelayedMessage

func (bot BotData) SendDelayedMessage(channelId, message string)

func (BotData) SendErrorMessage

func (bot BotData) SendErrorMessage(channelId, message string)

func (BotData) SendInternalServerErrorMessage

func (bot BotData) SendInternalServerErrorMessage(channelId string)

func (BotData) SendMessageWithNoTitle

func (bot BotData) SendMessageWithNoTitle(channelId, message string)

func (BotData) SendMessageWithTitle

func (bot BotData) SendMessageWithTitle(channelId, message, title string)

func (*BotData) SetSession

func (bot *BotData) SetSession(session *discordgo.Session)

func (*BotData) StartTime

func (bot *BotData) StartTime()

Jump to

Keyboard shortcuts

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