util

package
v0.0.0-...-b977382 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AtPrefix  = "@"
	CmdPrefix = "!"
)
View Source
const (
	MikeyBday = "1995-09-14"
)

Variables

This section is empty.

Functions

func GetMikeyYears

func GetMikeyYears() string

func GetQuery

func GetQuery(query string) *sql.Rows

func GetRand

func GetRand(max int) int

func GetShmeckles

func GetShmeckles(userId string)

func Max

func Max(x int, y int) int

func Min

func Min(x int, y int) int

func ParseLine

func ParseLine(s *discordgo.Session, m *discordgo.MessageCreate) (args []string)

func PrintDir

func PrintDir()

Types

type Argument

type Argument string
const (
	// Arguments
	ArgTime Argument = "-t"
)

type BankBalance

type BankBalance struct {
	Id              int
	DiscordMemberId int
	Balance         int64
}

type Command

type Command string
const (
	// Static Commands
	CommandHelp   Command = "help"
	CommandGamble Command = "gamble"
	CommandPing   Command = "ping"
	CommandMikey  Command = "mikey"

	CommandScheduleNew Command = "new"

	CommandBalance   Command = "balance"
	CommandBlackJack Command = "blackjack"
	CommandCoinFlip  Command = "flipcoin"

	CommandSchedule Command = "schedule"
)

type CommandGroup

type CommandGroup string

type Function

type Function string

type ScheduledEvent

type ScheduledEvent struct {
	Id        int
	Organizer string
	Attendees []string // Includes the Organizers username and all invitees
	Datetime  time.Time
}

Jump to

Keyboard shortcuts

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