Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 543 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 543 Bytes

Hackwave Bot

A simple currently Mattermost bot with plans to eventually open it up to support any Chat software that is implemented as a library used by a CLI tool.

In the command line tools developers can for now register their own regex event driven functionality.

		app.Bot = app.Bot.RegisterHook(bot.RegexFunction{
			Name:  "HelloResponder",
			Regex: `(?:^|\W)hello(?:$|\W)`,
			Function: func(post *model.Post) {
				app.Bot.SendMessageToChannel("hello dawg, you send the following post :"+post.Message, "")
			},
		})