func main() { foxbot.SetPlugins([]foxbot.Plugin{ &pluginAdmin{}, &pluginWatcher{}, &pluginHelp{}, &pluginUser{}, }) storage = &pluginStorage{ FilePath: "storage.json", } if storage.Load() != nil { if err := storage.Create(); err != nil { log.Println(err) } } router := httprouter.New() router.GET("/", index) router.GET("/rules/:channel", rules) router.GET("/settings/:channel", settings) go http.ListenAndServe(":4736", router) tg := foxbot.LoadBot() bot = foxbot.GetBot() bot.Start(tg) }
func main() { foxbot.SetPlugins([]foxbot.Plugin{ &pluginHelp{}, &pluginMath{}, &pluginUtils{}, &pluginMinecraft{}, }) tg := foxbot.LoadBot() bot = foxbot.GetBot() bot.Start(tg) }