user

package
v0.0.0-...-b47a7f1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID      string `json:"id",storm:"id"`
	Credits int    `json:"credits"`
}

type UserModule

type UserModule struct {
	// contains filtered or unexported fields
}

func NewUserModule

func NewUserModule(bot *teletran.Bot) *UserModule

func (*UserModule) GetAuthor

func (um *UserModule) GetAuthor(ctx *teletran.CommandContext) (*User, error)

func (*UserModule) GetUser

func (um *UserModule) GetUser(ID string) (*User, error)

func (*UserModule) Sync

func (um *UserModule) Sync(user *User) error

Jump to

Keyboard shortcuts

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