summaryrefslogtreecommitdiff
path: root/members.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <alexander@kiryukhin.su>2019-01-31 01:02:31 +0300
committerAlexander Kiryukhin <alexander@kiryukhin.su>2019-01-31 01:02:31 +0300
commit91c16487472cb23671ffdc9c230120441f85b620 (patch)
tree7454aa0053a2b613ff02c3a75db8bc5e09d6b5b2 /members.go
Initial commit
Diffstat (limited to 'members.go')
-rw-r--r--members.go23
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
+}
+