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 Normal View History

2017-10-04 17:56:18 +04:00
// i2_bot Instinct PokememBro Bot
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
package main
import (
2018-05-19 12:14:25 +04:00
"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"
2017-10-04 17:56:18 +04:00
)
var (
c *appcontext.Context
)
func main() {
c := appcontext.New()
c.Init()
2017-10-04 17:56:18 +04:00
router.New(c)
migrations.New(c)
c.RunDatabaseMigrations()
datacache.New(c)
sender.New(c)
2017-11-14 03:44:21 +04:00
forwarder.New(c)
pokedexer.New(c)
2017-11-14 03:44:21 +04:00
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)
2017-10-04 17:56:18 +04:00
2017-11-14 03:44:21 +04:00
c.Log.Info("=======================")
c.Log.Info("= i2_bot initialized. =")
c.Log.Info("=======================")
c.Cron.Start()
c.Log.Info("> Cron started.")
2018-02-05 12:37:46 +04:00
c.StartBot()
2017-10-04 17:56:18 +04:00
}