diff options
Diffstat (limited to 'members.go')
-rw-r--r-- | members.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/members.go b/members.go new file mode 100644 index 0000000..2886bed --- /dev/null +++ b/members.go @@ -0,0 +1,23 @@ +package main + +import ( + "math/rand" + "time" +) + +func getRandomMember() string { + rand.Seed(time.Now().Unix()) + team := []string{ + "<@U8UJT0UJX>", + "<@UCF7JA5CZ>", + "<@UC86HMG1G>", + "<@UCFHM9G04>", + "<@UC9GZ0C2J>", + } + + n := rand.Int() % len(team) + member := team[n] + + return member +} + |