mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-14 08:02:17 +00:00
LET ME BUILD ALREADY REEEEEEEEEEEEEEEEE
This commit is contained in:
parent
98f8ee5c8a
commit
7c09627774
2 changed files with 37 additions and 1 deletions
|
@ -7,7 +7,7 @@ steps:
|
||||||
image: golang:1.24-alpine3.20
|
image: golang:1.24-alpine3.20
|
||||||
commands:
|
commands:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
- go build -ldflags="-X 'main.ConfigBuildHash=$CI_COMMIT_SHA' -X 'main.ConfigBuildPipeline=$CI_PIPELINE_URL'" -o lynxie ./cmd/lynxie/.
|
- go build -ldflags="-X 'main.ConfigBuildHash=$CI_COMMIT_SHA' -X 'main.ConfigBuildPipeline=$CI_PIPELINE_URL'" -o lynxie .
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
|
|
36
main.go
Normal file
36
main.go
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
|
||||||
|
"github.com/Fluffy-Bean/lynxie/app"
|
||||||
|
"github.com/Fluffy-Bean/lynxie/pkg/commands/debug"
|
||||||
|
"github.com/Fluffy-Bean/lynxie/pkg/commands/img"
|
||||||
|
"github.com/Fluffy-Bean/lynxie/pkg/commands/porb"
|
||||||
|
"github.com/Fluffy-Bean/lynxie/pkg/commands/tinyfox"
|
||||||
|
"github.com/bwmarrin/discordgo"
|
||||||
|
)
|
||||||
|
|
||||||
|
var ConfigBuildHash string
|
||||||
|
var ConfigBuildPipeline string
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
a := app.NewApp(app.Config{
|
||||||
|
BotPrefix: ">",
|
||||||
|
BotToken: os.Getenv("TOKEN"),
|
||||||
|
BotIntents: discordgo.IntentsGuildMessages,
|
||||||
|
CommandExtras: map[string]string{
|
||||||
|
"debug_build-hash": ConfigBuildHash,
|
||||||
|
"debug_build-pipeline": ConfigBuildPipeline,
|
||||||
|
"e621_username": os.Getenv("E621_USERNAME"),
|
||||||
|
"e621_password": os.Getenv("E621_PASSWORD"),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
debug.RegisterDebugCommands(a)
|
||||||
|
img.RegisterImgCommands(a)
|
||||||
|
tinyfox.RegisterTinyfoxCommands(a)
|
||||||
|
porb.RegisterPorbCommands(a)
|
||||||
|
|
||||||
|
a.Run()
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue