state

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package state contains important variables.

Index

Constants

This section is empty.

Variables

View Source
var Application *discordgo.Application

Application is the Discord application of the instance.

View Source
var Exit = make(chan int)

Exit is used to exit.

View Source
var InviteURL string

InviteURL contains the invite URL of the bot.

View Source
var Multiplexer = multiplexer.New()

Multiplexer is the Discord event multiplexer.

View Source
var Reincarnation string

Reincarnation contains data used by the next incarnation.

View Source
var Session, _ = discordgo.New()

Session is a session without sharding.

View Source
var ShardSessions []*discordgo.Session

ShardSessions is the slice of sessions of each shard.

Functions

func Revision

func Revision() string

Revision returns the git revision of Nitori.

func Uptime

func Uptime() time.Duration

Uptime returns the duration the instance has been online.

func Version

func Version() string

Version returns the version of Nitori.

Types

This section is empty.

Jump to

Keyboard shortcuts

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