This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues/pull-requests.
2017-10-06 02:56:06 +04:00
|
|
|
|
// i2_bot – Instinct PokememBro Bot
|
|
|
|
|
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
|
|
|
|
|
|
|
|
|
|
package parsersinterface
|
|
|
|
|
|
|
|
|
|
import (
|
2017-10-18 07:03:34 +04:00
|
|
|
|
// 3rd party
|
|
|
|
|
"github.com/go-telegram-bot-api/telegram-bot-api"
|
|
|
|
|
// local
|
2017-10-26 18:17:58 +04:00
|
|
|
|
"lab.pztrn.name/fat0troll/i2_bot/lib/dbmapping"
|
2017-10-06 02:56:06 +04:00
|
|
|
|
)
|
|
|
|
|
|
2017-10-18 09:39:50 +04:00
|
|
|
|
// ParsersInterface implements Parsers for importing via appcontext.
|
2017-10-06 02:56:06 +04:00
|
|
|
|
type ParsersInterface interface {
|
2017-10-18 09:39:50 +04:00
|
|
|
|
ParsePokememe(text string, playerRaw dbmapping.Player) string
|
|
|
|
|
ParseProfile(update tgbotapi.Update, playerRaw dbmapping.Player) string
|
2017-10-18 07:03:34 +04:00
|
|
|
|
ReturnPoints(points int) string
|
2017-10-06 02:56:06 +04:00
|
|
|
|
}
|