mirror of
https://github.com/purofle/remake_bot.git
synced 2025-06-17 14:53:29 +08:00
22 lines
406 B
Go
22 lines
406 B
Go
package main
|
|
|
|
import (
|
|
_ "github.com/lib/pq"
|
|
"github.com/purofle/remake_bot/bot"
|
|
"go.uber.org/fx"
|
|
"go.uber.org/fx/fxevent"
|
|
"go.uber.org/zap"
|
|
"gopkg.in/telebot.v3"
|
|
)
|
|
|
|
func main() {
|
|
fx.New(
|
|
fx.Provide(NewLogger),
|
|
fx.WithLogger(func(log *zap.Logger) fxevent.Logger {
|
|
return &fxevent.ZapLogger{Logger: log}
|
|
}),
|
|
fx.Provide(bot.NewRemakeBot),
|
|
fx.Invoke(func(bot *telebot.Bot) {}),
|
|
).Run()
|
|
}
|