Skip to content

Commit

Permalink
update 5 files and delete 1 file
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMonga committed Oct 11, 2024
1 parent 654c156 commit c5c5d5f
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 9 deletions.
5 changes: 3 additions & 2 deletions main.go → cmd/maishapay-whatsapp-chatbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package main
import (
"log"

"maishapay-whatsapp-chatbot/scenes"

chatbot "github.com/green-api/whatsapp-chatbot-golang"
"github.com/green-api/whatsapp-demo-chatbot-golang/scenes"
"github.com/joho/godotenv"
)

Expand Down Expand Up @@ -42,7 +43,7 @@ func main() {
"pollMessageWebhook": "yes",
"markIncomingMessagesReaded": "yes",
})

if err != nil {
bot.ErrorChannel <- err
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/green-api/whatsapp-demo-chatbot-golang
module maishapay-whatsapp-chatbot

go 1.19

Expand Down
3 changes: 2 additions & 1 deletion scenes/createGroup.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package scenes

import (
"maishapay-whatsapp-chatbot/util"

chatbot "github.com/green-api/whatsapp-chatbot-golang"
"github.com/green-api/whatsapp-demo-chatbot-golang/util"
)

type CreateGroupScene struct {
Expand Down
5 changes: 3 additions & 2 deletions scenes/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"log"
"strings"

"maishapay-whatsapp-chatbot/model"
"maishapay-whatsapp-chatbot/util"

chatbot "github.com/green-api/whatsapp-chatbot-golang"
"github.com/green-api/whatsapp-demo-chatbot-golang/model"
"github.com/green-api/whatsapp-demo-chatbot-golang/util"
)

type EndpointsScene struct {
Expand Down
3 changes: 2 additions & 1 deletion scenes/mainMenu.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package scenes

import (
"maishapay-whatsapp-chatbot/util"

chatbot "github.com/green-api/whatsapp-chatbot-golang"
"github.com/green-api/whatsapp-demo-chatbot-golang/util"
)

type MainMenuScene struct {
Expand Down
5 changes: 3 additions & 2 deletions scenes/start.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package scenes

import (
"maishapay-whatsapp-chatbot/util"

chatbot "github.com/green-api/whatsapp-chatbot-golang"
"github.com/green-api/whatsapp-demo-chatbot-golang/util"
)

type StartScene struct{}
Expand All @@ -14,4 +15,4 @@ func (s StartScene) Start(bot *chatbot.Bot) {
message.SendText(util.GetString([]string{"select_language"}))
message.ActivateNextScene(MainMenuScene{})
})
}
}
2 changes: 2 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GO111MODULE=on go build -o bin/maishapay-whatsapp-chatbot cmd/maishapay-whatsapp-chatbot.go
# GO111MODULE=on go build
5 changes: 5 additions & 0 deletions scripts/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

./bin/maishapay-whatsapp-chatbot


0 comments on commit c5c5d5f

Please sign in to comment.