Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
trying to fix botway init --docker command, bump to 0.1.0-beta.52
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed May 14, 2022
1 parent a04759b commit d949449
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
3 changes: 3 additions & 0 deletions internal/pipes/initx/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit d949449

Please sign in to comment.