mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-19 09:54:53 +00:00
Set build hash and pipeline link through LDFlags
Add custom command values to config
This commit is contained in:
parent
eb50802d1e
commit
a0bb37fc06
5 changed files with 36 additions and 21 deletions
15
main.go
15
main.go
|
@ -11,11 +11,20 @@ import (
|
|||
"github.com/bwmarrin/discordgo"
|
||||
)
|
||||
|
||||
var ConfigBuildHash string
|
||||
var ConfigBuildPipeline string
|
||||
|
||||
func main() {
|
||||
a := app.NewApp(app.Config{
|
||||
Prefix: ">",
|
||||
Token: os.Getenv("TOKEN"),
|
||||
Intents: discordgo.IntentsGuildMessages,
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue