Change the rand seed to something actually random
parent
8ff9042596
commit
6cd0a56e26
|
@ -6,9 +6,11 @@ import (
|
|||
"github.com/bwmarrin/discordgo"
|
||||
"github.com/bwmarrin/disgord/x/mux"
|
||||
"log"
|
||||
"math/rand"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
"time"
|
||||
)
|
||||
|
||||
var Session, _ = discordgo.New()
|
||||
|
@ -17,6 +19,7 @@ var bot_channel string
|
|||
var Router = mux.New()
|
||||
|
||||
func init() {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
flag.StringVar(&bot_token, "t", "", "Discord Authentication Token")
|
||||
flag.StringVar(&bot_channel, "bc", "", "Bot status channel")
|
||||
flag.Parse()
|
||||
|
|
Loading…
Reference in New Issue