From 91c16487472cb23671ffdc9c230120441f85b620 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Thu, 31 Jan 2019 01:02:31 +0300 Subject: Initial commit --- members.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 members.go (limited to 'members.go') 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 +} + -- cgit v1.2.3