go-sarah: github.com/oklahomer/go-sarah/examples/simple/plugins/echo Index | Files

package echo

import "github.com/oklahomer/go-sarah/examples/simple/plugins/echo"

Package echo provides example code to sarah.Command implementation.

CommandProps is a better way to provide set of command properties to Runner especially when configuration file must be supervised and configuration struct needs to be updated on file update; Developer may implement Command interface herself and feed its instance to Bot via Bot.AppendCommand when command specification is simple.

Index

Package Files

command.go

Variables

var Command = &command{}

Command is a command instance that can directly fed to Bot.AppendCommand.

Package echo imports 4 packages (graph). Updated 2020-09-03. Refresh now. Tools for package owners.