lib

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

botsの仕様にあわせたライブラリです

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BotsHandler

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

コマンドのハンドラ

func NewBotsHandler

func NewBotsHandler(bin_dir string) (*BotsHandler, error)

bin_dirにコマンドが配置されたディレクトリのパスを指定, ハンドラを返します

func (*BotsHandler) GetCommand

func (handler *BotsHandler) GetCommand(cmd_name string) (*Command, error)

コマンドのオブジェクトを返します

type Command

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

Commandはコマンドを表します

func (*Command) GetHelp

func (cmd *Command) GetHelp() *pb.Help

Helpを返します

func (*Command) Kill added in v0.0.4

func (cmd *Command) Kill() error

コマンドを中止します

func (*Command) Run

func (cmd *Command) Run(in_pb *pb.Input) (*pb.Output, error)

コマンドを起動します

Directories

Path Synopsis
Discord用のbotsクライアントです.
Discord用のbotsクライアントです.

Jump to

Keyboard shortcuts

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