2017-11-21 06:06:32 +04:00
|
|
|
|
// i2_bot – Instinct PokememBro Bot
|
|
|
|
|
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
|
|
|
|
|
|
|
|
|
|
package usersinterface
|
|
|
|
|
|
|
|
|
|
import (
|
2018-02-13 22:05:32 +04:00
|
|
|
|
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping"
|
2018-01-23 20:13:16 +04:00
|
|
|
|
"github.com/go-telegram-bot-api/telegram-bot-api"
|
2017-11-21 06:06:32 +04:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// UsersInterface implements Users for importing via appcontex
|
|
|
|
|
type UsersInterface interface {
|
|
|
|
|
Init()
|
|
|
|
|
|
|
|
|
|
ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Player) string
|
|
|
|
|
|
2017-12-20 21:45:32 +04:00
|
|
|
|
GetPrettyName(user *tgbotapi.User) string
|
2017-11-21 06:06:32 +04:00
|
|
|
|
PlayerBetterThan(playerRaw *dbmapping.Player, powerLevel string) bool
|
|
|
|
|
|
2018-01-23 20:13:16 +04:00
|
|
|
|
FindByLevel(update *tgbotapi.Update) string
|
2017-12-02 13:45:24 +04:00
|
|
|
|
FindByName(update *tgbotapi.Update) string
|
2018-02-05 13:00:18 +04:00
|
|
|
|
FindByTopAttack(update *tgbotapi.Update) string
|
2017-12-01 10:55:18 +04:00
|
|
|
|
ForeignProfileMessage(update *tgbotapi.Update) string
|
2017-11-25 03:44:58 +04:00
|
|
|
|
FormatUsername(userName string) string
|
2018-01-23 20:50:21 +04:00
|
|
|
|
ProfileAddEffectsMessage(update *tgbotapi.Update) string
|
2017-11-21 06:06:32 +04:00
|
|
|
|
ProfileMessage(update *tgbotapi.Update, playerRaw *dbmapping.Player) string
|
2017-11-24 00:16:22 +04:00
|
|
|
|
UsersList(update *tgbotapi.Update) string
|
2017-11-21 06:06:32 +04:00
|
|
|
|
}
|