Browse Source

moved botConfig to types

master
David Haukeness 5 years ago
parent
commit
cea5d39387
  1. 6
      main.go
  2. 8
      types.go

6
main.go

@ -32,12 +32,6 @@ type botConfig struct { @@ -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 {

8
types.go

@ -1,5 +1,13 @@ @@ -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"`

Loading…
Cancel
Save