BareRTC/cmd/BareBot/main.go

32 lines
477 B
Go
Raw Permalink Normal View History

2023-08-14 02:21:27 +00:00
package main
import (
"math/rand"
"os"
"time"
"git.kirsle.net/apps/barertc/cmd/BareBot/commands"
"github.com/urfave/cli/v2"
)
const Version = "0.0.1"
func init() {
rand.Seed(time.Now().UnixNano())
}
func main() {
app := cli.NewApp()
app.Name = "BareBot"
app.Usage = "chatbot client for the BareRTC chat server"
app.Version = Version
app.Commands = []*cli.Command{
commands.Init,
commands.Run,
}
if err := app.Run(os.Args); err != nil {
panic(err)
}
}