botplugin

package
v0.0.0-...-3d8a0e0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	Start(*slack.Client) error
	Serve(context.Context, slack.RTMEvent) error
	Stop() error
	Help() string
}

Plugin はプラグインが満たすべきインターフェースです。 Name はプラグインの名前です。 Start で起動処理をします。必要であれば *slack.Client を保存してください。 Serve で *slack.RTMEvent を受け取って返事をするなりします。 Stop で終了処理をします。 Help で使い方を説明したメッセージを返します。

Jump to

Keyboard shortcuts

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