Create auth API & comment code

This commit is contained in:
Kevin Kandlbinder 2022-02-23 18:58:46 +01:00
parent 1b15b12859
commit c8d1c33cb4
17 changed files with 475 additions and 101 deletions

View file

@ -20,6 +20,7 @@ package cmd
import (
"github.com/Unkn0wnCat/matrix-veles/internal/bot"
"github.com/Unkn0wnCat/matrix-veles/internal/db"
"github.com/Unkn0wnCat/matrix-veles/internal/web"
"github.com/spf13/cobra"
)
@ -33,6 +34,7 @@ var runCmd = &cobra.Command{
The bot will log in to the homeserver and start posting updates to subscribed channels.`,
Run: func(cmd *cobra.Command, args []string) {
db.Connect()
go web.StartServer()
bot.Run()
},
}