initial commit
This commit is contained in:
26
main.go
Normal file
26
main.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"kurumibot/database"
|
||||
"kurumibot/plugins"
|
||||
|
||||
"kurumibot/laniakea"
|
||||
)
|
||||
|
||||
func main() {
|
||||
database.Connect()
|
||||
bot := laniakea.NewBot(&laniakea.BotSettings{
|
||||
Token: "",
|
||||
Debug: true,
|
||||
Prefixes: laniakea.LoadPrefixesFromEnv(),
|
||||
UseRequestLogger: true,
|
||||
LoggerBasePath: "./logs/",
|
||||
})
|
||||
bot = bot.ErrorTemplate("Во время выполнения команды произошла ошибка!\nСообщите об этом разработчику!\n\n%s")
|
||||
plugins.RegisterEconomy(bot)
|
||||
plugins.RegisterWaifus(bot)
|
||||
plugins.RegisterAdmin(bot)
|
||||
|
||||
defer bot.Close()
|
||||
bot.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user