config

package
v0.0.0-...-f8972c9 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string
	Build   string
)
View Source
var (
	// BotPrefix is the prefix used for bot commands.
	BotPrefix = "!"

	// BotGuild is the ID of the guild the bot is running on.
	BotGuild = "936651575684915201"

	// HampAPI is the URL to the hamp API.
	HampAPI     = "https://api.hamp.sh"
	HampAPIHost = "api.hamp.sh"

	VerifiedRoleId     = "1020858770659745844"
	StaffFacultyRoleId = "1183920480361648228"
)
View Source
var (
	GroupUtil        = "Util"
	GroupFun         = "Fun"
	GroupInfo        = "Info"
	GroupMod         = "Moderation"
	GroupStudentLife = "Student Life"
)
View Source
var Statuses = []discordgo.Activity{
	{
		Name: "with frogs",
		Type: discordgo.ActivityTypeGame,
	},
	{
		Name: fmt.Sprintf("PVTA Simulator %d", time.Now().Year()),
		Type: discordgo.ActivityTypeGame,
	},
	{
		Name: "Stray",
		Type: discordgo.ActivityTypeGame,
	},
	{
		Name: "the Dakin fire alarm",
		Type: discordgo.ActivityTypeListening,
	},
	{
		Name: "at the Roos-Rhode house",
		Type: discordgo.ActivityTypeGame,
	},
}

Functions

func ConvertTimestampToDiscordTimestamp

func ConvertTimestampToDiscordTimestamp(t time.Time) string

func ConvertTimestampToDiscordTimestampWithFormat

func ConvertTimestampToDiscordTimestampWithFormat(t time.Time, format string) string

func DecodePolyline

func DecodePolyline(bytes []byte) []byte

func GetTileNumbers

func GetTileNumbers(lat, long float64, zoom int) (uint64, uint64)

Types

type Hex

type Hex string

type LoggedMessages

type LoggedMessages = map[string]discordgo.Message
var MessageLog LoggedMessages = make(LoggedMessages)

type RGB

type RGB struct {
	Red   uint8
	Green uint8
	Blue  uint8
}

func Hex2RGB

func Hex2RGB(hex Hex) (RGB, error)

Jump to

Keyboard shortcuts

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