talk: Add token file as default parameter

This commit is contained in:
Hamcha 2017-05-09 13:37:59 +02:00
parent 43ca576345
commit c20eab1cd5

View file

@ -44,7 +44,7 @@ var mods = map[string]Mod{
OnMessage: proverbio,
},
"talk": {
OnInit: inittalk,
OnInit: inittalk,
OnMessage: talk,
},
"stt": {
@ -107,7 +107,7 @@ func main() {
macropath = flag.String("macropath", "macros.json", "Path to macros db (JSON)")
remindpath = flag.String("remindpath", "reminders.json", "Path to reminder db (JSON)")
proverbi = flag.String("proverbi", "proverbi.txt", "Path to proverbi pairs (separated by /)")
talktoken = flag.String("apiai", "", "api.ai token")
talktoken = flag.String("apiai", "@apiai.token", "api.ai token")
gapifile = flag.String("gapi", "gapi.json", "Google API Service Credentials file")
disable := flag.String("disable", "", "Blacklist mods (separated by comma)")
enable := flag.String("enable", "", "Whitelist mods (separated by comma)")