diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/cmd/main.go | 4 | ||||
| -rw-r--r-- | app/internal/create_bot.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/cmd/main.go b/app/cmd/main.go index 525482c..14980b7 100644 --- a/app/cmd/main.go +++ b/app/cmd/main.go @@ -23,8 +23,8 @@ func main() { mux.HandleFunc("GET /", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello, World!")) }) - botId := "XXXXX" - botToken := "XXXXX" + botId := "xxxxx" + botToken := "xxxxx" bot := &internal.Bot{ BotID: botId, diff --git a/app/internal/create_bot.go b/app/internal/create_bot.go index c1bea85..7f9aa15 100644 --- a/app/internal/create_bot.go +++ b/app/internal/create_bot.go @@ -25,7 +25,7 @@ func Start(b *Bot) (net.Conn, error) { } // Configuration du bot - cmd := exec.Command("../bot/build/discord-bot", b.BotToken) + cmd := exec.Command("./bot/build/discord-bot", b.BotToken) cmd.SysProcAttr = &syscall.SysProcAttr{ Setpgid: true, // Permet de kill le processus enfant si nécessaire } |
