Move import path to Github
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| # i2_bot: бот лиги Инстинкт игры @PokememBroBot | ||||
|  | ||||
| [](https://goreportcard.com/report/source.wtfteam.pro/i2_bot/i2_bot) | ||||
| [](https://goreportcard.com/report/github.com/fat0troll/i2_bot) | ||||
|  | ||||
| Для запуска нужен правильный ``config.yml``. | ||||
| Управление зависимостями осуществляет [dep](https://github.com/golang/dep). | ||||
|   | ||||
| @@ -4,23 +4,23 @@ | ||||
| package main | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/broadcaster" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/chatter" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datacache" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/forwarder" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/migrations" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/orders" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/pinner" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/pokedexer" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/reminder" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/router" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/sender" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/squader" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/statistics" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/talkers" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/users" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/welcomer" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/broadcaster" | ||||
| 	"github.com/fat0troll/i2_bot/lib/chatter" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datacache" | ||||
| 	"github.com/fat0troll/i2_bot/lib/forwarder" | ||||
| 	"github.com/fat0troll/i2_bot/lib/migrations" | ||||
| 	"github.com/fat0troll/i2_bot/lib/orders" | ||||
| 	"github.com/fat0troll/i2_bot/lib/pinner" | ||||
| 	"github.com/fat0troll/i2_bot/lib/pokedexer" | ||||
| 	"github.com/fat0troll/i2_bot/lib/reminder" | ||||
| 	"github.com/fat0troll/i2_bot/lib/router" | ||||
| 	"github.com/fat0troll/i2_bot/lib/sender" | ||||
| 	"github.com/fat0troll/i2_bot/lib/squader" | ||||
| 	"github.com/fat0troll/i2_bot/lib/statistics" | ||||
| 	"github.com/fat0troll/i2_bot/lib/talkers" | ||||
| 	"github.com/fat0troll/i2_bot/lib/users" | ||||
| 	"github.com/fat0troll/i2_bot/lib/welcomer" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -13,24 +13,24 @@ import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"github.com/jmoiron/sqlx" | ||||
| 	"github.com/robfig/cron" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/broadcaster/broadcasterinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/chatter/chatterinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/config" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/connections" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datacache/datacacheinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/forwarder/forwarderinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/migrations/migrationsinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/orders/ordersinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/pinner/pinnerinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/pokedexer/pokedexerinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/reminder/reminderinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/router/routerinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/sender/senderinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/squader/squaderinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/statistics/statisticsinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/talkers/talkersinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/users/usersinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/welcomer/welcomerinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/broadcaster/broadcasterinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/chatter/chatterinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/config" | ||||
| 	"github.com/fat0troll/i2_bot/lib/connections" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datacache/datacacheinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/forwarder/forwarderinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/migrations/migrationsinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/orders/ordersinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/pinner/pinnerinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/pokedexer/pokedexerinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/reminder/reminderinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/router/routerinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/sender/senderinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/squader/squaderinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/statistics/statisticsinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/talkers/talkersinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/users/usersinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/welcomer/welcomerinterface" | ||||
| ) | ||||
|  | ||||
| // Context is an application context struct | ||||
|   | ||||
| @@ -6,7 +6,7 @@ package broadcaster | ||||
| import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (b *Broadcaster) createBroadcastMessage(playerRaw *dbmapping.Player, messageBody string, broadcastType string) (dbmapping.Broadcast, bool) { | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package broadcasterinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // BroadcasterInterface implements Broadcaster for importing via appcontex | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package broadcaster | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/broadcaster/broadcasterinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/broadcaster/broadcasterinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // AdminBroadcastMessageCompose saves message for future broadcast | ||||
|   | ||||
| @@ -7,8 +7,8 @@ import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/constants" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/constants" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // AdminBroadcastMessageSend sends saved message to all private chats | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package chatterinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // ChatterInterface implements Chatter for importing via appcontext. | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package chatter | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/chatter/chatterinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/chatter/chatterinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (ct *Chatter) userPrivilegesCheck(update *tgbotapi.Update, user *tgbotapi.User) bool { | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	_ "github.com/go-sql-driver/mysql" // MySQL driver for sqlx | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"github.com/jmoiron/sqlx" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/config" | ||||
| 	"github.com/fat0troll/i2_bot/lib/config" | ||||
| ) | ||||
|  | ||||
| // BotInit initializes connection to Telegram | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initChats() { | ||||
|   | ||||
| @@ -5,8 +5,8 @@ package datacacheinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // DataCacheInterface implements DataCache for importing via appcontext. | ||||
|   | ||||
| @@ -8,8 +8,8 @@ import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"gopkg.in/yaml.v2" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/static" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/static" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initElements() { | ||||
|   | ||||
| @@ -6,10 +6,10 @@ package datacache | ||||
| import ( | ||||
| 	"sync" | ||||
|  | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datacache/datacacheinterface" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datacache/datacacheinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -9,8 +9,8 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"gopkg.in/yaml.v2" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/static" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/static" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initLeagues() { | ||||
|   | ||||
| @@ -8,8 +8,8 @@ import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"gopkg.in/yaml.v2" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/static" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/static" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initLevels() { | ||||
|   | ||||
| @@ -8,8 +8,8 @@ import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"gopkg.in/yaml.v2" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/static" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/static" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initLocations() { | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strconv" | ||||
| 	"time" | ||||
|  | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initPlayers() { | ||||
|   | ||||
| @@ -9,8 +9,8 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"gopkg.in/yaml.v2" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/static" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/static" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initPokememes() { | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"errors" | ||||
| 	"strconv" | ||||
|  | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initProfiles() { | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"errors" | ||||
| 	"strconv" | ||||
|  | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initSquads() { | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strconv" | ||||
| 	"time" | ||||
|  | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initTournamentReports() { | ||||
|   | ||||
| @@ -9,8 +9,8 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"gopkg.in/yaml.v2" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/static" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/static" | ||||
| ) | ||||
|  | ||||
| func (dc *DataCache) initWeapons() { | ||||
|   | ||||
| @@ -6,7 +6,7 @@ package dbmapping | ||||
| import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| ) | ||||
|  | ||||
| // Player is a struct, which represents `players` table item in databse. | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package forwarder | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/forwarder/forwarderinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/forwarder/forwarderinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"regexp" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // ProcessForward process forwards for single-user chats | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package forwarderinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // ForwarderInterface implements Getters for importing via appcontext. | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package migrations | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/migrations/migrationsinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/migrations/migrationsinterface" | ||||
| ) | ||||
|  | ||||
| // Migrations handles all functions of migrations package | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package orders | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/orders/ordersinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/orders/ordersinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -4,7 +4,7 @@ | ||||
| package orders | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // GetAllOrders returns all orders in database | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // Internal functions | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package ordersinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // OrdersInterface implements Orders for importing via appcontext. | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package pinner | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/pinner/pinnerinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/pinner/pinnerinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (p *Pinner) execMassMessagePin(update *tgbotapi.Update, groupChats []dbmapping.Chat) string { | ||||
|   | ||||
| @@ -5,8 +5,8 @@ package pokedexer | ||||
|  | ||||
| import ( | ||||
| 	// local | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/pokedexer/pokedexerinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/pokedexer/pokedexerinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strconv" | ||||
| 	"strings" | ||||
|  | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| ) | ||||
|  | ||||
| func (p *Pokedexer) getAdvicePokememes(playerID int, adviceType string) ([]*datamapping.PokememeFull, bool) { | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // ParsePokememe parses pokememe, forwarded from PokememeBroBot, to database | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/datamapping" | ||||
| ) | ||||
|  | ||||
| func (p *Pokedexer) pokememesListingMessage(update *tgbotapi.Update, page int, pokememesArray map[int]*datamapping.PokememeFull) string { | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package pokedexerinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // PokedexerInterface implements Pokedexer for importing via appcontext. | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // AdvicePokememesList shows list for catching | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package reminder | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/reminder/reminderinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/reminder/reminderinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (r *Reminder) getRemindersForUser(playerRaw *dbmapping.Player) ([]dbmapping.Alarm, bool) { | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package reminderinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // ReminderInterface implements Reminder for importing via appcontext | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package reminder | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // AlarmsList lists all alarms for user with buttons to enable/disable each of available alarms | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // SendReminders sends reminders for users about coming league tournament | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // CreateAlarmSetting creates alarm setting for user | ||||
|   | ||||
| @@ -4,7 +4,7 @@ | ||||
| package router | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"regexp" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (r *Router) routeGroupRequest(update tgbotapi.Update, playerRaw *dbmapping.Player, chatRaw *dbmapping.Chat) string { | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (r *Router) routePrivateRequest(update tgbotapi.Update, playerRaw *dbmapping.Player, chatRaw *dbmapping.Chat) string { | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package sender | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/sender/senderinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/sender/senderinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package squader | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/squader/squaderinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/squader/squaderinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // SquadsList lists all squads | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (s *Squader) isUserAnyCommander(playerID int) bool { | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package squaderinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // SquaderInterface implements Squader for importing via appcontext. | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package statistics | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/statistics/statisticsinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/statistics/statisticsinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -6,7 +6,7 @@ package statistics | ||||
| import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // SquadStatictics generates statistics message snippet. Public due to usage in chats list | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package statisticsinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // StatisticsInterface implements Statistics for importing via appcontext. | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| func (s *Statistics) renderPosition(profilesRaw *[]*dbmapping.PlayerProfile, playerRaw *dbmapping.Player) string { | ||||
|   | ||||
| @@ -9,7 +9,7 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/constants" | ||||
| 	"github.com/fat0troll/i2_bot/lib/constants" | ||||
| ) | ||||
|  | ||||
| // LongMessage is an easter egg | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package talkers | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/constants" | ||||
| 	"github.com/fat0troll/i2_bot/lib/constants" | ||||
| ) | ||||
|  | ||||
| // AnyMessageUnauthorized throws when user can't do something | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package talkers | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/talkers/talkersinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/talkers/talkersinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -7,9 +7,9 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/config" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/constants" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/config" | ||||
| 	"github.com/fat0troll/i2_bot/lib/constants" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // AcademyMessage gives user link to Bastion | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package talkersinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // TalkersInterface implements Talkers for importing via appcontex | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package users | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/users/usersinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/users/usersinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package users | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // GetPrettyName returns "pretty" name of user (first_name + last name or username) | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // Internal functions | ||||
|   | ||||
| @@ -8,7 +8,7 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // FormatUsername formats Telegram username for posting | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // Internal functions for Users package | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package usersinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // UsersInterface implements Users for importing via appcontex | ||||
|   | ||||
| @@ -4,8 +4,8 @@ | ||||
| package welcomer | ||||
|  | ||||
| import ( | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/welcomer/welcomerinterface" | ||||
| 	"github.com/fat0troll/i2_bot/lib/appcontext" | ||||
| 	"github.com/fat0troll/i2_bot/lib/welcomer/welcomerinterface" | ||||
| ) | ||||
|  | ||||
| var ( | ||||
|   | ||||
| @@ -7,7 +7,7 @@ import ( | ||||
| 	"strconv" | ||||
|  | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // PrivateWelcomeMessageUnauthorized tell new user what to do. | ||||
|   | ||||
| @@ -5,7 +5,7 @@ package welcomerinterface | ||||
|  | ||||
| import ( | ||||
| 	"github.com/go-telegram-bot-api/telegram-bot-api" | ||||
| 	"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" | ||||
| 	"github.com/fat0troll/i2_bot/lib/dbmapping" | ||||
| ) | ||||
|  | ||||
| // WelcomerInterface implements Welcomer for importing via appcontex | ||||
|   | ||||
		Reference in New Issue
	
	Block a user