Archived
1

Command to find users on level

This commit is contained in:
2018-01-23 20:13:16 +04:00
parent 190cdc6e7b
commit 6a57d8581c
4 changed files with 69 additions and 22 deletions

View File

@@ -4,8 +4,8 @@
package usersinterface
import (
"github.com/go-telegram-bot-api/telegram-bot-api"
"git.wtfteam.pro/fat0troll/i2_bot/lib/dbmapping"
"github.com/go-telegram-bot-api/telegram-bot-api"
)
// UsersInterface implements Users for importing via appcontex
@@ -20,6 +20,7 @@ type UsersInterface interface {
GetPlayerByID(playerID int) (dbmapping.Player, bool)
PlayerBetterThan(playerRaw *dbmapping.Player, powerLevel string) bool
FindByLevel(update *tgbotapi.Update) string
FindByName(update *tgbotapi.Update) string
ForeignProfileMessage(update *tgbotapi.Update) string
FormatUsername(userName string) string