Archived
1

Move import path to Github

This commit is contained in:
Vladimir Hodakov 2018-05-19 12:14:25 +04:00
parent 67cdb3edb5
commit 98bf2c393b
Signed by: Vladimir Hodakov
GPG Key ID: 673980B6882F82C6
74 changed files with 134 additions and 134 deletions

View File

@ -1,6 +1,6 @@
# i2_bot: бот лиги Инстинкт игры @PokememBroBot # i2_bot: бот лиги Инстинкт игры @PokememBroBot
[![Go Report Card](https://goreportcard.com/badge/source.wtfteam.pro/i2_bot/i2_bot)](https://goreportcard.com/report/source.wtfteam.pro/i2_bot/i2_bot) [![Go Report Card](https://goreportcard.com/badge/github.com/fat0troll/i2_bot)](https://goreportcard.com/report/github.com/fat0troll/i2_bot)
Для запуска нужен правильный ``config.yml``. Для запуска нужен правильный ``config.yml``.
Управление зависимостями осуществляет [dep](https://github.com/golang/dep). Управление зависимостями осуществляет [dep](https://github.com/golang/dep).

View File

@ -4,23 +4,23 @@
package main package main
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/broadcaster" "github.com/fat0troll/i2_bot/lib/broadcaster"
"source.wtfteam.pro/i2_bot/i2_bot/lib/chatter" "github.com/fat0troll/i2_bot/lib/chatter"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datacache" "github.com/fat0troll/i2_bot/lib/datacache"
"source.wtfteam.pro/i2_bot/i2_bot/lib/forwarder" "github.com/fat0troll/i2_bot/lib/forwarder"
"source.wtfteam.pro/i2_bot/i2_bot/lib/migrations" "github.com/fat0troll/i2_bot/lib/migrations"
"source.wtfteam.pro/i2_bot/i2_bot/lib/orders" "github.com/fat0troll/i2_bot/lib/orders"
"source.wtfteam.pro/i2_bot/i2_bot/lib/pinner" "github.com/fat0troll/i2_bot/lib/pinner"
"source.wtfteam.pro/i2_bot/i2_bot/lib/pokedexer" "github.com/fat0troll/i2_bot/lib/pokedexer"
"source.wtfteam.pro/i2_bot/i2_bot/lib/reminder" "github.com/fat0troll/i2_bot/lib/reminder"
"source.wtfteam.pro/i2_bot/i2_bot/lib/router" "github.com/fat0troll/i2_bot/lib/router"
"source.wtfteam.pro/i2_bot/i2_bot/lib/sender" "github.com/fat0troll/i2_bot/lib/sender"
"source.wtfteam.pro/i2_bot/i2_bot/lib/squader" "github.com/fat0troll/i2_bot/lib/squader"
"source.wtfteam.pro/i2_bot/i2_bot/lib/statistics" "github.com/fat0troll/i2_bot/lib/statistics"
"source.wtfteam.pro/i2_bot/i2_bot/lib/talkers" "github.com/fat0troll/i2_bot/lib/talkers"
"source.wtfteam.pro/i2_bot/i2_bot/lib/users" "github.com/fat0troll/i2_bot/lib/users"
"source.wtfteam.pro/i2_bot/i2_bot/lib/welcomer" "github.com/fat0troll/i2_bot/lib/welcomer"
) )
var ( var (

View File

@ -13,24 +13,24 @@ import (
"github.com/go-telegram-bot-api/telegram-bot-api" "github.com/go-telegram-bot-api/telegram-bot-api"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"github.com/robfig/cron" "github.com/robfig/cron"
"source.wtfteam.pro/i2_bot/i2_bot/lib/broadcaster/broadcasterinterface" "github.com/fat0troll/i2_bot/lib/broadcaster/broadcasterinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/chatter/chatterinterface" "github.com/fat0troll/i2_bot/lib/chatter/chatterinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/config" "github.com/fat0troll/i2_bot/lib/config"
"source.wtfteam.pro/i2_bot/i2_bot/lib/connections" "github.com/fat0troll/i2_bot/lib/connections"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datacache/datacacheinterface" "github.com/fat0troll/i2_bot/lib/datacache/datacacheinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/forwarder/forwarderinterface" "github.com/fat0troll/i2_bot/lib/forwarder/forwarderinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/migrations/migrationsinterface" "github.com/fat0troll/i2_bot/lib/migrations/migrationsinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/orders/ordersinterface" "github.com/fat0troll/i2_bot/lib/orders/ordersinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/pinner/pinnerinterface" "github.com/fat0troll/i2_bot/lib/pinner/pinnerinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/pokedexer/pokedexerinterface" "github.com/fat0troll/i2_bot/lib/pokedexer/pokedexerinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/reminder/reminderinterface" "github.com/fat0troll/i2_bot/lib/reminder/reminderinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/router/routerinterface" "github.com/fat0troll/i2_bot/lib/router/routerinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/sender/senderinterface" "github.com/fat0troll/i2_bot/lib/sender/senderinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/squader/squaderinterface" "github.com/fat0troll/i2_bot/lib/squader/squaderinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/statistics/statisticsinterface" "github.com/fat0troll/i2_bot/lib/statistics/statisticsinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/talkers/talkersinterface" "github.com/fat0troll/i2_bot/lib/talkers/talkersinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/users/usersinterface" "github.com/fat0troll/i2_bot/lib/users/usersinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/welcomer/welcomerinterface" "github.com/fat0troll/i2_bot/lib/welcomer/welcomerinterface"
) )
// Context is an application context struct // Context is an application context struct

View File

@ -6,7 +6,7 @@ package broadcaster
import ( import (
"time" "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) { func (b *Broadcaster) createBroadcastMessage(playerRaw *dbmapping.Player, messageBody string, broadcastType string) (dbmapping.Broadcast, bool) {

View File

@ -5,7 +5,7 @@ package broadcasterinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // BroadcasterInterface implements Broadcaster for importing via appcontex

View File

@ -4,8 +4,8 @@
package broadcaster package broadcaster
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/broadcaster/broadcasterinterface" "github.com/fat0troll/i2_bot/lib/broadcaster/broadcasterinterface"
) )
var ( var (

View File

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // AdminBroadcastMessageCompose saves message for future broadcast

View File

@ -7,8 +7,8 @@ import (
"strconv" "strconv"
"github.com/go-telegram-bot-api/telegram-bot-api" "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"
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "github.com/fat0troll/i2_bot/lib/dbmapping"
) )
// AdminBroadcastMessageSend sends saved message to all private chats // AdminBroadcastMessageSend sends saved message to all private chats

View File

@ -5,7 +5,7 @@ package chatterinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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. // ChatterInterface implements Chatter for importing via appcontext.

View File

@ -4,8 +4,8 @@
package chatter package chatter
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/chatter/chatterinterface" "github.com/fat0troll/i2_bot/lib/chatter/chatterinterface"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 { func (ct *Chatter) userPrivilegesCheck(update *tgbotapi.Update, user *tgbotapi.User) bool {

View File

@ -8,7 +8,7 @@ import (
_ "github.com/go-sql-driver/mysql" // MySQL driver for sqlx _ "github.com/go-sql-driver/mysql" // MySQL driver for sqlx
"github.com/go-telegram-bot-api/telegram-bot-api" "github.com/go-telegram-bot-api/telegram-bot-api"
"github.com/jmoiron/sqlx" "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 // BotInit initializes connection to Telegram

View File

@ -9,7 +9,7 @@ import (
"time" "time"
"github.com/go-telegram-bot-api/telegram-bot-api" "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() { func (dc *DataCache) initChats() {

View File

@ -5,8 +5,8 @@ package datacacheinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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"
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "github.com/fat0troll/i2_bot/lib/dbmapping"
) )
// DataCacheInterface implements DataCache for importing via appcontext. // DataCacheInterface implements DataCache for importing via appcontext.

View File

@ -8,8 +8,8 @@ import (
"strconv" "strconv"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" "github.com/fat0troll/i2_bot/lib/datamapping"
"source.wtfteam.pro/i2_bot/i2_bot/static" "github.com/fat0troll/i2_bot/static"
) )
func (dc *DataCache) initElements() { func (dc *DataCache) initElements() {

View File

@ -6,10 +6,10 @@ package datacache
import ( import (
"sync" "sync"
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datacache/datacacheinterface" "github.com/fat0troll/i2_bot/lib/datacache/datacacheinterface"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" "github.com/fat0troll/i2_bot/lib/datamapping"
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "github.com/fat0troll/i2_bot/lib/dbmapping"
) )
var ( var (

View File

@ -9,8 +9,8 @@ import (
"strings" "strings"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" "github.com/fat0troll/i2_bot/lib/datamapping"
"source.wtfteam.pro/i2_bot/i2_bot/static" "github.com/fat0troll/i2_bot/static"
) )
func (dc *DataCache) initLeagues() { func (dc *DataCache) initLeagues() {

View File

@ -8,8 +8,8 @@ import (
"strconv" "strconv"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" "github.com/fat0troll/i2_bot/lib/datamapping"
"source.wtfteam.pro/i2_bot/i2_bot/static" "github.com/fat0troll/i2_bot/static"
) )
func (dc *DataCache) initLevels() { func (dc *DataCache) initLevels() {

View File

@ -8,8 +8,8 @@ import (
"strconv" "strconv"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" "github.com/fat0troll/i2_bot/lib/datamapping"
"source.wtfteam.pro/i2_bot/i2_bot/static" "github.com/fat0troll/i2_bot/static"
) )
func (dc *DataCache) initLocations() { func (dc *DataCache) initLocations() {

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"time" "time"
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "github.com/fat0troll/i2_bot/lib/dbmapping"
) )
func (dc *DataCache) initPlayers() { func (dc *DataCache) initPlayers() {

View File

@ -9,8 +9,8 @@ import (
"strings" "strings"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" "github.com/fat0troll/i2_bot/lib/datamapping"
"source.wtfteam.pro/i2_bot/i2_bot/static" "github.com/fat0troll/i2_bot/static"
) )
func (dc *DataCache) initPokememes() { func (dc *DataCache) initPokememes() {

View File

@ -7,7 +7,7 @@ import (
"errors" "errors"
"strconv" "strconv"
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "github.com/fat0troll/i2_bot/lib/dbmapping"
) )
func (dc *DataCache) initProfiles() { func (dc *DataCache) initProfiles() {

View File

@ -7,7 +7,7 @@ import (
"errors" "errors"
"strconv" "strconv"
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "github.com/fat0troll/i2_bot/lib/dbmapping"
) )
func (dc *DataCache) initSquads() { func (dc *DataCache) initSquads() {

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"time" "time"
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "github.com/fat0troll/i2_bot/lib/dbmapping"
) )
func (dc *DataCache) initTournamentReports() { func (dc *DataCache) initTournamentReports() {

View File

@ -9,8 +9,8 @@ import (
"strings" "strings"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"source.wtfteam.pro/i2_bot/i2_bot/lib/datamapping" "github.com/fat0troll/i2_bot/lib/datamapping"
"source.wtfteam.pro/i2_bot/i2_bot/static" "github.com/fat0troll/i2_bot/static"
) )
func (dc *DataCache) initWeapons() { func (dc *DataCache) initWeapons() {

View File

@ -6,7 +6,7 @@ package dbmapping
import ( import (
"time" "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. // Player is a struct, which represents `players` table item in databse.

View File

@ -4,8 +4,8 @@
package forwarder package forwarder
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/forwarder/forwarderinterface" "github.com/fat0troll/i2_bot/lib/forwarder/forwarderinterface"
) )
var ( var (

View File

@ -7,7 +7,7 @@ import (
"regexp" "regexp"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // ProcessForward process forwards for single-user chats

View File

@ -5,7 +5,7 @@ package forwarderinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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. // ForwarderInterface implements Getters for importing via appcontext.

View File

@ -4,8 +4,8 @@
package migrations package migrations
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/migrations/migrationsinterface" "github.com/fat0troll/i2_bot/lib/migrations/migrationsinterface"
) )
// Migrations handles all functions of migrations package // Migrations handles all functions of migrations package

View File

@ -4,8 +4,8 @@
package orders package orders
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/orders/ordersinterface" "github.com/fat0troll/i2_bot/lib/orders/ordersinterface"
) )
var ( var (

View File

@ -4,7 +4,7 @@
package orders package orders
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "github.com/fat0troll/i2_bot/lib/dbmapping"
) )
// GetAllOrders returns all orders in database // GetAllOrders returns all orders in database

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // Internal functions

View File

@ -5,7 +5,7 @@ package ordersinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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. // OrdersInterface implements Orders for importing via appcontext.

View File

@ -4,8 +4,8 @@
package pinner package pinner
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/pinner/pinnerinterface" "github.com/fat0troll/i2_bot/lib/pinner/pinnerinterface"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 { func (p *Pinner) execMassMessagePin(update *tgbotapi.Update, groupChats []dbmapping.Chat) string {

View File

@ -5,8 +5,8 @@ package pokedexer
import ( import (
// local // local
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/pokedexer/pokedexerinterface" "github.com/fat0troll/i2_bot/lib/pokedexer/pokedexerinterface"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"strings" "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) { func (p *Pokedexer) getAdvicePokememes(playerID int, adviceType string) ([]*datamapping.PokememeFull, bool) {

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // ParsePokememe parses pokememe, forwarded from PokememeBroBot, to database

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 { func (p *Pokedexer) pokememesListingMessage(update *tgbotapi.Update, page int, pokememesArray map[int]*datamapping.PokememeFull) string {

View File

@ -5,7 +5,7 @@ package pokedexerinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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. // PokedexerInterface implements Pokedexer for importing via appcontext.

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // AdvicePokememesList shows list for catching

View File

@ -4,8 +4,8 @@
package reminder package reminder
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/reminder/reminderinterface" "github.com/fat0troll/i2_bot/lib/reminder/reminderinterface"
) )
var ( var (

View File

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"github.com/go-telegram-bot-api/telegram-bot-api" "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) { func (r *Reminder) getRemindersForUser(playerRaw *dbmapping.Player) ([]dbmapping.Alarm, bool) {

View File

@ -5,7 +5,7 @@ package reminderinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // ReminderInterface implements Reminder for importing via appcontext

View File

@ -5,7 +5,7 @@ package reminder
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // AlarmsList lists all alarms for user with buttons to enable/disable each of available alarms

View File

@ -7,7 +7,7 @@ import (
"time" "time"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // SendReminders sends reminders for users about coming league tournament

View File

@ -9,7 +9,7 @@ import (
"time" "time"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // CreateAlarmSetting creates alarm setting for user

View File

@ -4,7 +4,7 @@
package router package router
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"regexp" "regexp"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 { func (r *Router) routeGroupRequest(update tgbotapi.Update, playerRaw *dbmapping.Player, chatRaw *dbmapping.Chat) string {

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 { func (r *Router) routePrivateRequest(update tgbotapi.Update, playerRaw *dbmapping.Player, chatRaw *dbmapping.Chat) string {

View File

@ -4,8 +4,8 @@
package sender package sender
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/sender/senderinterface" "github.com/fat0troll/i2_bot/lib/sender/senderinterface"
) )
var ( var (

View File

@ -4,8 +4,8 @@
package squader package squader
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/squader/squaderinterface" "github.com/fat0troll/i2_bot/lib/squader/squaderinterface"
) )
var ( var (

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // SquadsList lists all squads

View File

@ -10,7 +10,7 @@ import (
"time" "time"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 { func (s *Squader) isUserAnyCommander(playerID int) bool {

View File

@ -5,7 +5,7 @@ package squaderinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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. // SquaderInterface implements Squader for importing via appcontext.

View File

@ -4,8 +4,8 @@
package statistics package statistics
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/statistics/statisticsinterface" "github.com/fat0troll/i2_bot/lib/statistics/statisticsinterface"
) )
var ( var (

View File

@ -6,7 +6,7 @@ package statistics
import ( import (
"strconv" "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 // SquadStatictics generates statistics message snippet. Public due to usage in chats list

View File

@ -5,7 +5,7 @@ package statisticsinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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. // StatisticsInterface implements Statistics for importing via appcontext.

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 { func (s *Statistics) renderPosition(profilesRaw *[]*dbmapping.PlayerProfile, playerRaw *dbmapping.Player) string {

View File

@ -9,7 +9,7 @@ import (
"time" "time"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // LongMessage is an easter egg

View File

@ -5,7 +5,7 @@ package talkers
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // AnyMessageUnauthorized throws when user can't do something

View File

@ -4,8 +4,8 @@
package talkers package talkers
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/talkers/talkersinterface" "github.com/fat0troll/i2_bot/lib/talkers/talkersinterface"
) )
var ( var (

View File

@ -7,9 +7,9 @@ import (
"time" "time"
"github.com/go-telegram-bot-api/telegram-bot-api" "github.com/go-telegram-bot-api/telegram-bot-api"
"source.wtfteam.pro/i2_bot/i2_bot/lib/config" "github.com/fat0troll/i2_bot/lib/config"
"source.wtfteam.pro/i2_bot/i2_bot/lib/constants" "github.com/fat0troll/i2_bot/lib/constants"
"source.wtfteam.pro/i2_bot/i2_bot/lib/dbmapping" "github.com/fat0troll/i2_bot/lib/dbmapping"
) )
// AcademyMessage gives user link to Bastion // AcademyMessage gives user link to Bastion

View File

@ -5,7 +5,7 @@ package talkersinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // TalkersInterface implements Talkers for importing via appcontex

View File

@ -4,8 +4,8 @@
package users package users
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/users/usersinterface" "github.com/fat0troll/i2_bot/lib/users/usersinterface"
) )
var ( var (

View File

@ -5,7 +5,7 @@ package users
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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) // GetPrettyName returns "pretty" name of user (first_name + last name or username)

View File

@ -10,7 +10,7 @@ import (
"time" "time"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // Internal functions

View File

@ -8,7 +8,7 @@ import (
"strings" "strings"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // FormatUsername formats Telegram username for posting

View File

@ -10,7 +10,7 @@ import (
"time" "time"
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // Internal functions for Users package

View File

@ -5,7 +5,7 @@ package usersinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // UsersInterface implements Users for importing via appcontex

View File

@ -4,8 +4,8 @@
package welcomer package welcomer
import ( import (
"source.wtfteam.pro/i2_bot/i2_bot/lib/appcontext" "github.com/fat0troll/i2_bot/lib/appcontext"
"source.wtfteam.pro/i2_bot/i2_bot/lib/welcomer/welcomerinterface" "github.com/fat0troll/i2_bot/lib/welcomer/welcomerinterface"
) )
var ( var (

View File

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"github.com/go-telegram-bot-api/telegram-bot-api" "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. // PrivateWelcomeMessageUnauthorized tell new user what to do.

View File

@ -5,7 +5,7 @@ package welcomerinterface
import ( import (
"github.com/go-telegram-bot-api/telegram-bot-api" "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 // WelcomerInterface implements Welcomer for importing via appcontex