Skip to content

Commit

Permalink
github.com/shoce/tgzebot + log fix + version
Browse files Browse the repository at this point in the history
  • Loading branch information
shoce committed Aug 24, 2023
1 parent a7b9a74 commit 68833b1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
build-push:
runs-on: ubuntu-latest
steps:
- name: VERSION
- name: Checkout repository
uses: actions/checkout@v3
- name: version
run: |
VERSION=$( date '+%y%m%d.%H%M.0' )
echo "VERSION:$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- name: Log into registry ${{ env.REGISTRY }}
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module src.iriy.de/tgzebot
module github.com/shoce/tgzebot

go 1.20

Expand All @@ -12,6 +12,6 @@ require (
github.com/dlclark/regexp2 v1.10.0 // indirect
github.com/dop251/goja v0.0.0-20230812105242-81d76064690d // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/google/pprof v0.0.0-20230816055901-76846d4d6a3b // indirect
github.com/google/pprof v0.0.0-20230821062121-407c9e7a662f // indirect
golang.org/x/text v0.12.0 // indirect
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ github.com/dop251/goja_nodejs v0.0.0-20211022123610-8dd9abb0616d/go.mod h1:DngW8
github.com/go-sourcemap/sourcemap v2.1.3+incompatible h1:W1iEw64niKVGogNgBN3ePyLFfuisuzeidWPMPWmECqU=
github.com/go-sourcemap/sourcemap v2.1.3+incompatible/go.mod h1:F8jJfvm2KbVjc5NqelyYJmf/v5J0dwNLS2mL4sNA1Jg=
github.com/google/pprof v0.0.0-20230207041349-798e818bf904/go.mod h1:uglQLonpP8qtYCYyzA+8c/9qtqgA3qsXGYqCPKARAFg=
github.com/google/pprof v0.0.0-20230816055901-76846d4d6a3b h1:ZUEdbUOOhWGpraX/m58S9paRt9iUGrabIS9kauan88w=
github.com/google/pprof v0.0.0-20230816055901-76846d4d6a3b/go.mod h1:Jh3hGz2jkYak8qXPD19ryItVnUgpgeqzdkY/D0EaeuA=
github.com/google/pprof v0.0.0-20230821062121-407c9e7a662f h1:pDhu5sgp8yJlEF/g6osliIIpF9K4F5jvkULXa4daRDQ=
github.com/google/pprof v0.0.0-20230821062121-407c9e7a662f/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik=
github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w=
github.com/kkdai/youtube/v2 v2.8.3 h1:zIzXZXsrMhy+ryKbm0VJYPPbY1OIf0n5L4s0UweIGCE=
github.com/kkdai/youtube/v2 v2.8.3/go.mod h1:VPQwegyWSjwNxrg5da07u2YjX7bliRG6rPzZr+eb/pc=
Expand Down
5 changes: 2 additions & 3 deletions tgzebot.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ https://johnvansickle.com/ffmpeg/
curl -s -S -L https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz | tar -x -J
mv ./ffmpeg-*-amd64-static/ffmpeg ./ffmpeg
rm -f go.mod go.sum
go mod init src.iriy.de/tgzebot
go mod init github.com/shoce/tgzebot
go get -a -u -v
go get github.com/kkdai/youtube/v2@master
go mod tidy
Expand Down Expand Up @@ -357,7 +356,7 @@ func tsversion() string {
func log(msg interface{}, args ...interface{}) {
t := time.Now().Local()
ts := fmt.Sprintf(
"%03dy."+"%02d%02dd."+"%02dh"+"%02dm.",
"%03d."+"%02d%02d."+"%02d"+"%02d.",
t.Year()%1000, t.Month(), t.Day(), t.Hour(), t.Minute(),
)
msgtext := fmt.Sprintf("%s %s", ts, msg) + NL
Expand Down

0 comments on commit 68833b1

Please sign in to comment.