This commit is contained in:
unintendedfraud
2023-08-14 01:23:00 +02:00
parent 1892d11f49
commit 0d758a4e5f
2 changed files with 16 additions and 16 deletions
+1
View File
@@ -1,2 +1,3 @@
env.go env.go
data/football/*.json data/football/*.json
hal_env.txt
+15 -16
View File
@@ -4,34 +4,33 @@ import (
"fmt" "fmt"
"hal/commands" "hal/commands"
"hal/env" "hal/env"
"hal/handlers"
"log" "log"
"time" "time"
tempest "github.com/Amatsagu/Tempest" tempest "github.com/Amatsagu/Tempest"
// discordbot "github.com/bwmarrin/discordgo" discordbot "github.com/bwmarrin/discordgo"
) )
func main() { func main() {
fmt.Println("HAL started") fmt.Println("HAL started")
env := env.GetEnvVariables() env := env.GetEnvVariables()
fmt.Println(env)
var err error var err error
// dgclient, err := discordbot.New(env.Token) dgclient, err := discordbot.New(env.Token)
// if err != nil { if err != nil {
// panic(fmt.Errorf("failed to create discord client: %s", err.Error())) panic(fmt.Errorf("failed to create discord client: %s", err.Error()))
// } }
// defer dgclient.Close() defer dgclient.Close()
//
// dgclient.AddHandler(handlers.OnMessageCreated) dgclient.AddHandler(handlers.OnMessageCreated)
//
// err = dgclient.Open() err = dgclient.Open()
// if err != nil { if err != nil {
// fmt.Println("error opening connection,", err) fmt.Println("error opening connection,", err)
// return return
// } }
client := tempest.CreateClient(tempest.ClientOptions{ client := tempest.CreateClient(tempest.ClientOptions{
ApplicationId: env.AppID, ApplicationId: env.AppID,