|
|
|
@ -10,12 +10,19 @@ import (
@@ -10,12 +10,19 @@ import (
|
|
|
|
|
|
|
|
|
|
// Options holds... run... options...
|
|
|
|
|
type Options struct { |
|
|
|
|
KeybaseLoction string |
|
|
|
|
HomeDir string |
|
|
|
|
Username string |
|
|
|
|
PaperKey string |
|
|
|
|
EnableTyping bool |
|
|
|
|
BotLiteMode bool |
|
|
|
|
KeybaseLoction string // Optional, but required if keybase is not in your path
|
|
|
|
|
HomeDir string // Only use this if you know what you're doing
|
|
|
|
|
Username string // Your keybase username
|
|
|
|
|
PaperKey string // Your keybase paperkey
|
|
|
|
|
EnableTyping bool // Show others a typing notification while the bot is working on a command
|
|
|
|
|
BotLiteMode bool // Defaults to true - only disable if you need to.
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// NewOptions returns a new instance of *Options with sensible defaults
|
|
|
|
|
func NewOptions() *Options { |
|
|
|
|
return &Options{ |
|
|
|
|
BotLiteMode: true, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// locateKeybase attempts to find the location of the keybase binary in the following order:
|
|
|
|
|