go-sarah: github.com/oklahomer/go-sarah/examples

Directories

PathSynopsis
simplePackage main provides a simple bot experience using slack.Adapter with multiple plugin commands and scheduled tasks.
simple/plugins/countPackage count provides example code to setup sarah.CommandProps.
simple/plugins/echoPackage echo provides example code to sarah.Command implementation.
simple/plugins/fixedtimerPackage fixedtimer provides example code to setup ScheduledTaskProps with fixed schedule.
simple/plugins/guessPackage guess provides example code to setup stateful command.
simple/plugins/helloPackage hello provides example code to setup relatively simple sarah.CommandProps.
simple/plugins/morningPackage morning provides example code to setup sarah.CommandProps with relatively complex matching function.
simple/plugins/timerPackage timer provides example code to setup ScheduledTaskProps with re-configurable schedule and sending room.
simple/plugins/todoPackage todo is an example of stateful command that let users input required arguments step by step in a conversational manner.
simple/plugins/worldweatherPackage worldweather is a reference implementation that provides relatively practical use of sarah.CommandProps.
statusPackage main provides an example that uses sarah.CurrentStatus() to get current go-sarah and its belonging Bot's status via HTTP server.

Updated 2020-10-27. Refresh now. Tools for package owners.