app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitWrap

func SplitWrap(s string, lim uint) (parts []string)

Types

type AppInfo

type AppInfo struct {
	Timestamp time.Time `json:"timestamp"`

	Name         string `json:"name"`
	Age          string `json:"age"`
	BattleTag    string `json:"battle_tag"`
	ArmoryURL    string `json:"armory"`
	LogsURL      string `json:"logs"`
	InterfaceURL string `json:"ui"`

	OtherResponses []Response `json:"other"`
}

func (*AppInfo) ChannelName

func (a *AppInfo) ChannelName() (n string)

type Response

type Response struct {
	Question string `json:"question"`
	Answer   string `json:"answer"`
}

type Server

type Server struct {
	Log logrus.FieldLogger
	// contains filtered or unexported fields
}

func NewServer

func NewServer(log logrus.FieldLogger, discord *discordgo.Session, addr string) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

Jump to

Keyboard shortcuts

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