Update main.go to support name and version information for NIP-11

This commit is contained in:
cr0bar 2024-09-18 08:50:28 +01:00 committed by GitHub
parent 57fb3885ad
commit 845f02b381
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,10 @@ import (
"github.com/nbd-wtf/go-nostr"
)
var (
version string
)
type Config struct {
RelayName string
RelayPubkey string
@ -74,6 +78,9 @@ func main() {
relay.Info.Name = config.RelayName
relay.Info.PubKey = config.RelayPubkey
relay.Info.Description = config.RelayDescription
relay.Info.Software = "WoT Relay"
relay.Info.Version = version
appendPubkey(config.RelayPubkey)
db := getDB()