hdkv
/
i2_bot
Archived
1
Fork 0
This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues/pull-requests.
i2_bot/cmd/i2_bot/i2_bot.go

61 lines
1.4 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// i2_bot Instinct PokememBro Bot
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
package main
import (
"github.com/fat0troll/i2_bot/lib/appcontext"
"github.com/fat0troll/i2_bot/lib/broadcaster"
"github.com/fat0troll/i2_bot/lib/chatter"
"github.com/fat0troll/i2_bot/lib/datacache"
"github.com/fat0troll/i2_bot/lib/forwarder"
"github.com/fat0troll/i2_bot/lib/migrations"
"github.com/fat0troll/i2_bot/lib/orders"
"github.com/fat0troll/i2_bot/lib/pinner"
"github.com/fat0troll/i2_bot/lib/pokedexer"
"github.com/fat0troll/i2_bot/lib/reminder"
"github.com/fat0troll/i2_bot/lib/router"
"github.com/fat0troll/i2_bot/lib/sender"
"github.com/fat0troll/i2_bot/lib/squader"
"github.com/fat0troll/i2_bot/lib/statistics"
"github.com/fat0troll/i2_bot/lib/talkers"
"github.com/fat0troll/i2_bot/lib/users"
"github.com/fat0troll/i2_bot/lib/welcomer"
)
var (
c *appcontext.Context
)
func main() {
c := appcontext.New()
c.Init()
router.New(c)
migrations.New(c)
c.RunDatabaseMigrations()
datacache.New(c)
sender.New(c)
forwarder.New(c)
pokedexer.New(c)
pinner.New(c)
talkers.New(c)
broadcaster.New(c)
welcomer.New(c)
chatter.New(c)
squader.New(c)
users.New(c)
statistics.New(c)
orders.New(c)
reminder.New(c)
c.Log.Info("=======================")
c.Log.Info("= i2_bot initialized. =")
c.Log.Info("=======================")
c.Cron.Start()
c.Log.Info("> Cron started.")
c.StartBot()
}