moved botConfig to types
This commit is contained in:
6
main.go
6
main.go
@ -32,12 +32,6 @@ type botConfig struct {
|
|||||||
KVStoreTeam string `env:"BOT_KVSTORE_TEAM" envDefault:""`
|
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
|
// Debug provides printing only when --debug flag is set or BOT_DEBUG env var is set
|
||||||
func (b *bot) debug(s string, a ...interface{}) {
|
func (b *bot) debug(s string, a ...interface{}) {
|
||||||
if b.config.Debug {
|
if b.config.Debug {
|
||||||
|
|||||||
8
types.go
8
types.go
@ -1,5 +1,13 @@
|
|||||||
package main
|
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
|
// ConvOptions stores team specific options like custom servers
|
||||||
type ConvOptions struct {
|
type ConvOptions struct {
|
||||||
ConvID string `json:"converation_id,omitempty"`
|
ConvID string `json:"converation_id,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user