Added dict with additional cards

This commit is contained in:
Artyom Belousov 2021-02-03 19:09:08 +03:00
parent 181f3bc0aa
commit 88ea431a27
26 changed files with 232 additions and 35 deletions

21
main.go
View file

@ -1,21 +0,0 @@
package main
import (
"log"
"math/rand"
"os"
"time"
"gitlab.com/flygrounder/go-mtg-vk/vk"
"github.com/gin-gonic/gin"
)
func main() {
rand.Seed(time.Now().UTC().UnixNano())
logFile, _ := os.OpenFile("logs/errors.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
log.SetOutput(logFile)
r := gin.Default()
r.POST("callback/message", vk.HandleMessage)
_ = r.Run(":80")
}