twitchapon

[Twi]tch [Cha]nnel [Po]ints Rewards Redemption Listener
git clone git://bsandro.tech/twitchapon
Log | Files | Refs | README | LICENSE

commit c3a413952823574bf8836baad6141cea1de01156
parent 58b96b9c07a5015ecdbc676efe3c66cb76c3a908
Author: bsandro <[email protected]>
Date:   Mon, 17 May 2021 00:59:13 +0300

go fmt

Diffstat:
MTODO | 1+
Mconfig.go | 4++--
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/TODO b/TODO @@ -2,6 +2,7 @@ Brief TODO list of features to implement. Symbols as I use them: "-" is "planned", "?" is "questionable", "+" is "done" - https://github.com/Palakis/obs-websocket compatibility +- configurable map of input events bound to output obs commands - put some comments in the code - unmarshal nested json received in messages and forward it properly - cache authorization token till it expires diff --git a/config.go b/config.go @@ -2,8 +2,8 @@ package main import ( "encoding/json" - "os" "fmt" + "os" ) type TConfig struct { @@ -26,7 +26,7 @@ func (conf *TConfig) Init() error { } config_data, err := os.ReadFile(config_name) if err != nil { - if (os.IsNotExist(err)) { + if os.IsNotExist(err) { fmt.Println("Config file does not exist! Sample:") conf.InitSample() conf.Print()