moved botConfig to types

This commit is contained in:
2020-03-31 14:35:43 +00:00
parent 4f056f8137
commit cea5d39387
2 changed files with 8 additions and 6 deletions

View File

@ -32,12 +32,6 @@ type botConfig struct {
KVStoreTeam string `env:"BOT_KVSTORE_TEAM" envDefault:""`
}
// hold reply information when needed
type botReply struct {
convID chat1.ConvIDStr
msgID chat1.MessageID
}
// Debug provides printing only when --debug flag is set or BOT_DEBUG env var is set
func (b *bot) debug(s string, a ...interface{}) {
if b.config.Debug {

View File

@ -1,5 +1,13 @@
package main
import "samhofi.us/x/keybase/types/chat1"
// hold reply information when needed
type botReply struct {
convID chat1.ConvIDStr
msgID chat1.MessageID
}
// ConvOptions stores team specific options like custom servers
type ConvOptions struct {
ConvID string `json:"converation_id,omitempty"`