bot

package
v0.0.0-...-1b8ee3a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnouncementTemplateValues

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

type Bot

type Bot struct {
	// contains filtered or unexported fields
}

Bot is a SSH CA Keybase-backed bot

func New

func New(conf config.Config) (ca Bot, err error)

New creates a new Bot with a Keybase chat API

func (*Bot) DeleteAllClientConfigs

func (b *Bot) DeleteAllClientConfigs() error

DeleteAllClientConfigs deletes all found kssh configs for all teams the CA bot is a member of

func (*Bot) LogError

func (b *Bot) LogError(msg kbchat.SubscriptionMessage, err error)

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

func (*Bot) Start

func (b *Bot) Start() error

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

Jump to

Keyboard shortcuts

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