solupro 5 лет назад
Родитель
Сommit
7ecd6ec276
3 измененных файлов с 15 добавлено и 1 удалено
  1. 5 0
      go.mod
  2. 9 0
      go.sum
  3. 1 1
      runner.go

+ 5 - 0
go.mod

@@ -0,0 +1,5 @@
+module bot
+
+go 1.12
+
+require github.com/sirupsen/logrus v1.4.1

+ 9 - 0
go.sum

@@ -0,0 +1,9 @@
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/sirupsen/logrus v1.4.1 h1:GL2rEmy6nsikmW0r8opw9JIRScdMF5hA8cOYLH7In1k=
+github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
+github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
+golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33 h1:I6FyU15t786LL7oL/hn43zqTuEGr4PN7F4XJ1p4E3Y8=
+golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

+ 1 - 1
runner.go

@@ -10,7 +10,7 @@ import (
 const (
 	MAX_RUN    = 3
 	MIN_RUN    = 1
-	TIME_CHECK = 10 * time.Second // 十分钟检查一次
+	TIME_CHECK = 10 * time.Second // 十分钟检查一次
 )
 
 var BotQueue *queue