Skip to content

Commit ae29270

Browse files
Revert "colors tuning"
This reverts commit 91bbd45.
1 parent 91bbd45 commit ae29270

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

go.mod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@ go 1.21
55
require (
66
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1
77
github.com/lmittmann/tint v1.0.4
8-
github.com/mattn/go-isatty v0.0.20
98
)
10-
11-
require golang.org/x/sys v0.6.0 // indirect

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@ github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1 h1:wG8n/XJQ07TmjbITcGi
22
github.com/go-telegram-bot-api/telegram-bot-api/v5 v5.5.1/go.mod h1:A2S0CWkNylc2phvKXWBBdD3K0iGnDBGbzRpISP2zBl8=
33
github.com/lmittmann/tint v1.0.4 h1:LeYihpJ9hyGvE0w+K2okPTGUdVLfng1+nDNVR4vWISc=
44
github.com/lmittmann/tint v1.0.4/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
5-
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
6-
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
7-
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
8-
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

tgscrumbot/cmd/tgscrumbot/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"time"
99

1010
"github.com/lmittmann/tint"
11-
"github.com/mattn/go-isatty"
1211

1312
"github.com/teamin-pro/tgscrumbot/tgscrumbot/internal"
1413
)
@@ -21,12 +20,10 @@ var (
2120
func main() {
2221
flag.Parse()
2322

24-
w := os.Stdout
2523
slog.SetDefault(slog.New(
26-
tint.NewHandler(w, &tint.Options{
24+
tint.NewHandler(os.Stdout, &tint.Options{
2725
Level: slog.LevelDebug,
2826
TimeFormat: time.Kitchen,
29-
NoColor: !isatty.IsTerminal(w.Fd()),
3027
}),
3128
))
3229

0 commit comments

Comments
 (0)