bot

package
v0.0.0-...-e70d3af Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKBChat

func GetKBChat(conf config.Config) (*kbchat.API, error)

Get a running instance of the keybase chat API. Will use the configured credentials if necessary.

func GetUsername

func GetUsername(conf config.Config) (string, error)

Get the username of the user that the keybaseca bot is running as

func LogError

func LogError(conf config.Config, kbc *kbchat.API, msg kbchat.SubscriptionMessage, err error)

Log the given error to Keybase chat and to the configured log file. Used so that the chatbot does not crash due to an error caused by a malformed message.

func StartBot

func StartBot(conf config.Config) error

Start the keybaseca bot in an infinite loop. Does not return unless it encounters an unrecoverable error.

Types

type AnnouncementTemplateValues

type AnnouncementTemplateValues struct {
	Username    string
	CurrentTeam string
	Teams       []string
}

Jump to

Keyboard shortcuts

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