已存档
1
该仓库已于 2022-11-04 归档。您可以查看文件或克隆它,但不能推送、创建工单或合并请求。
i2_bot/lib/users/usersinterface/usersinterface.go

29 行
949 B
Go

// i2_bot – Instinct PokememBro Bot
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
package usersinterface
import (
"github.com/go-telegram-bot-api/telegram-bot-api"
2018-01-21 23:28:53 +04:00
"git.wtfteam.pro/fat0troll/i2_bot/lib/dbmapping"
)
// UsersInterface implements Users for importing via appcontex
type UsersInterface interface {
Init()
ParseProfile(update *tgbotapi.Update, playerRaw *dbmapping.Player) string
GetPrettyName(user *tgbotapi.User) string
GetProfile(playerID int) (dbmapping.Profile, bool)
GetOrCreatePlayer(telegramID int) (dbmapping.Player, bool)
GetPlayerByID(playerID int) (dbmapping.Player, bool)
PlayerBetterThan(playerRaw *dbmapping.Player, powerLevel string) bool
FindByName(update *tgbotapi.Update) string
ForeignProfileMessage(update *tgbotapi.Update) string
FormatUsername(userName string) string
ProfileMessage(update *tgbotapi.Update, playerRaw *dbmapping.Player) string
2017-11-24 00:16:22 +04:00
UsersList(update *tgbotapi.Update) string
}