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
cmd/go-mtg-vk/main.go Normal file
View file

@ -0,0 +1,21 @@
package main
import (
"log"
"math/rand"
"os"
"time"
"github.com/gin-gonic/gin"
"gitlab.com/flygrounder/go-mtg-vk/internal/vk"
)
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(":8000")
}