Move import path to Github
This commit is contained in:
parent
67cdb3edb5
commit
98bf2c393b
@ -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).
|
||||||
|
@ -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 (
|
||||||
|
@ -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
|
||||||
|
@ -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) {
|
||||||
|
@ -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
|
||||||
|
@ -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 (
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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.
|
||||||
|
@ -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 (
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
|
@ -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() {
|
||||||
|
@ -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.
|
||||||
|
@ -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() {
|
||||||
|
@ -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 (
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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.
|
||||||
|
@ -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 (
|
||||||
|
@ -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
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
|
@ -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 (
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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.
|
||||||
|
@ -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 (
|
||||||
|
@ -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 {
|
||||||
|
@ -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 (
|
||||||
|
@ -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) {
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
|
@ -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 (
|
||||||
|
@ -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) {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 (
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 (
|
||||||
|
@ -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 (
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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.
|
||||||
|
@ -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 (
|
||||||
|
@ -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
|
||||||
|
@ -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.
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 (
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 (
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 (
|
||||||
|
@ -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.
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user