0
0
mirror of https://github.com/rls-moe/nyx synced 2024-10-06 13:52:07 +02:00
nyx/resources/ids.go

19 lines
274 B
Go
Raw Normal View History

package resources
import (
"go.rls.moe/nyx/resources/snowflakes"
"time"
)
var fountain = snowflakes.Generator{
StartTime: time.Date(
2017, 03, 11,
11, 12, 29,
0, time.UTC).Unix(),
}
func getID() (int, error) {
id, err := fountain.NewID()
return int(id), err
}