mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-06-14 16:41:57 +02:00
Create auth API & comment code
This commit is contained in:
parent
1b15b12859
commit
c8d1c33cb4
17 changed files with 475 additions and 101 deletions
|
@ -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()
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue