discord_bots/schema.cue

31 lines
702 B
CUE

// Initially generated by cue get go.
//cue:generate cue get go dev.justinjudd.com/discord_bots
package main
#Config: {
Server: string
VoiceChatAnnounce?: {
Enable: bool | *false
AnnounceChannel: string | *""
JoinMessages: [...string] @go(,[]string)
CleanUpDelay: int | *30
} @go(,struct{Enable bool; AnnounceChannel string; JoinMessages []string; CleanUpDelay int})
BirthdayAnnounce?: {
Enable: bool | *false
AnnounceChannel: string | *""
Birthdays: [...#Birthday] @go(,[]Birthday)
} @go(,struct{Enable bool; AnnounceChannel string; Birthdays []Birthday})
}
#Birthday: {
Name: string
Member: string
Date: string
}
#Enabled: {
Enable: true
...
}