25 lines
561 B
Go
25 lines
561 B
Go
// i2_bot – Instinct PokememBro Bot
|
||
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
|
||
|
||
package pokedexer
|
||
|
||
import (
|
||
// local
|
||
"git.wtfteam.pro/fat0troll/i2_bot/lib/appcontext"
|
||
"git.wtfteam.pro/fat0troll/i2_bot/lib/pokedexer/pokedexerinterface"
|
||
)
|
||
|
||
var (
|
||
c *appcontext.Context
|
||
)
|
||
|
||
// Pokedexer is a function-handling struct for package pokedexer
|
||
type Pokedexer struct{}
|
||
|
||
// New is an initialization function for appcontext
|
||
func New(ac *appcontext.Context) {
|
||
c = ac
|
||
p := &Pokedexer{}
|
||
c.RegisterPokedexerInterface(pokedexerinterface.PokedexerInterface(p))
|
||
}
|