aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-10-09 20:08:44 -0700
committerChristine Dodrill <me@christine.website>2018-10-09 20:08:44 -0700
commitacf7336eed51728d5061e3bc6cda92cf8eae5998 (patch)
treef7a70a767ac85ce86891ee3375b462510fb30320
parent2ab3582aabeffe8c313152e833632d73a1461fbb (diff)
downloadx-1.0.tar.xz
x-1.0.zip
ilo-kesi: fix jan lawa testv1.0
-rw-r--r--discord/ilo-kesi/bot.go2
-rw-r--r--discord/ilo-kesi/main.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/discord/ilo-kesi/bot.go b/discord/ilo-kesi/bot.go
index 0855f54..2475e36 100644
--- a/discord/ilo-kesi/bot.go
+++ b/discord/ilo-kesi/bot.go
@@ -20,7 +20,7 @@ var (
)
func (i ilo) janLawaAnuSeme(authorID string) bool {
- for _, jan := range i.cfg.janLawa {
+ for _, jan := range i.cfg.JanLawa {
if authorID == jan {
return true
}
diff --git a/discord/ilo-kesi/main.go b/discord/ilo-kesi/main.go
index 2955d6f..cdee7c3 100644
--- a/discord/ilo-kesi/main.go
+++ b/discord/ilo-kesi/main.go
@@ -30,7 +30,7 @@ type lipuSona struct {
TokiPonaTokenizerAPIURL string `env:"TOKI_PONA_TOKENIZER_API_URL,default=https://us-central1-golden-cove-408.cloudfunctions.net/function-1"`
SwitchCounterWebhook string `env:"SWITCH_COUNTER_WEBHOOK,required"`
IloNimi string `env:"ILO_NIMI,default=Kesi"`
- janLawa []string `env:"JAN_LAWA,required"`
+ JanLawa []string `env:"JAN_LAWA,required"`
}
func init() {
@@ -46,7 +46,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
- cfg.janLawa = append(cfg.janLawa, "console")
+ cfg.JanLawa = append(cfg.JanLawa, "console")
flag.Parse()
internal.HandleLicense()