repo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *mongo.Client

Functions

func AcceptGame

func AcceptGame(channel string) error

func AcceptPlayer

func AcceptPlayer(channel string, user *discordgo.User) error

func AwaitingPlayer

func AwaitingPlayer(channel string) (string, bool)

func CreateGameDocument

func CreateGameDocument(channel string, settings interface{}) error

func DeleteGameDocument

func DeleteGameDocument(channel string) error

func GameIsAccepted

func GameIsAccepted(channel string) (bool, error)

func GameIsAcceptedBy

func GameIsAcceptedBy(channel string, user *discordgo.User) (bool, error)

func GetCurrentPlayer

func GetCurrentPlayer(channel string) string

func GetGameDocument

func GetGameDocument(channel string) (d.GameSettings, error)

func UpdateGameDocument

func UpdateGameDocument(channel string, new interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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