talk: Read a bit better from file
This commit is contained in:
parent
c20eab1cd5
commit
76c4a672fc
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ func inittalk() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
*talktoken = string(data)
|
*talktoken = strings.TrimSpace(string(data))
|
||||||
}
|
}
|
||||||
if *talktoken == "" {
|
if *talktoken == "" {
|
||||||
panic(fmt.Errorf("API token for api.ai must be provided! (provide it or --disable talk)"))
|
panic(fmt.Errorf("API token for api.ai must be provided! (provide it or --disable talk)"))
|
||||||
|
|
Reference in a new issue