Skip to content

Commit

Permalink
Fix config related error
Browse files Browse the repository at this point in the history
  • Loading branch information
aandrew-me committed May 24, 2023
1 parent 841dca0 commit 339cd8a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/olekukonko/ts"
)

const localVersion = "1.6.2"
const localVersion = "1.6.3"

var bold = color.New(color.Bold)
var boldBlue = color.New(color.Bold, color.FgBlue)
Expand Down Expand Up @@ -53,7 +53,10 @@ func main() {
}
chatId := ""
if hasConfig {
chatId = strings.Split(string(configTxtByte), ":")[1]
configArr := strings.Split(string(configTxtByte), ":")
if len(configArr) == 2 {
chatId = configArr[1]
}
}
args := os.Args

Expand Down

0 comments on commit 339cd8a

Please sign in to comment.