From d949449144628c8865c78c64297b5c6dddb44b25 Mon Sep 17 00:00:00 2001 From: abdfnx Date: Sat, 14 May 2022 06:26:30 +0000 Subject: [PATCH] trying to fix `botway init --docker` command, bump to `0.1.0-beta.52` --- Taskfile.yaml | 4 ++++ internal/pipes/initx/docker.go | 3 +++ package.json | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index e301ced4..70f0d0f4 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -44,3 +44,7 @@ tasks: - ./docker/build.sh debian - ./docker/build.sh distroless - ./docker/build.sh ubuntu + + remove-docker-images: + cmds: + - docker rmi $(docker images -a -q) diff --git a/internal/pipes/initx/docker.go b/internal/pipes/initx/docker.go index 6746d4c2..1285adf7 100755 --- a/internal/pipes/initx/docker.go +++ b/internal/pipes/initx/docker.go @@ -63,12 +63,14 @@ func DockerInit() { } err, out, errOut := gosh.RunOutput("botway vars get " + bot_token) + out = out[:len(out)-1] if err != nil { panic(errOut) } appErr, appOut, appErrOut := gosh.RunOutput("botway vars get " + app_token) + appOut = appOut[:len(appOut)-1] if appErr != nil { panic(appErrOut) @@ -90,6 +92,7 @@ func DockerInit() { server := gjson.Get(string(constants.Guilds), "guilds." + fmt.Sprint(x)).String() err, out, errOut := gosh.RunOutput("botway vars get " + strings.ToUpper(server + "_GUILD_ID")) + out = out[:len(out)-1] if err != nil { panic(errOut) diff --git a/package.json b/package.json index 74638eb8..8041b797 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "botway", - "version": "0.1.0-beta.4", + "version": "0.1.0-beta.52", "description": "🤖 Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.", "type": "module", "author": "abdfnx",