commands

package
v0.0.0-...-cd77bea Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2016 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentCommand

func CurrentCommand(db *sqlx.DB, userID string) slack.ResponseMessage

CurrentCommand show the current user game state

func GetGameImage

func GetGameImage(db *sqlx.DB, stateID string) (image.Image, error)

GetGameImage returns the image by state

func HelpCommand

func HelpCommand() slack.ResponseMessage

HelpCommand show the possible info about available commands for user

func MoveCommand

func MoveCommand(db *sqlx.DB, userID string, spot uint8) slack.ResponseMessage

MoveCommand defines the tic tac toe moves

func PingCommand

func PingCommand() slack.ResponseMessage

PingCommand ping back

func StartCommand

func StartCommand(db *sqlx.DB, userID string) slack.ResponseMessage

StartCommand is command to start

Types

This section is empty.

Jump to

Keyboard shortcuts

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