Changed import path order
This commit is contained in:
parent
c65f927678
commit
58a257f840
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/pariz/gountries"
|
||||
|
||||
"github.com/bwmarrin/discordgo"
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"reflect"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/utils/gql"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/graphql-go/graphql"
|
||||
)
|
||||
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
var ratings = map[string][]arn.AnimeListItemRating{}
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
_ "image/png"
|
||||
|
||||
"github.com/aerogo/http/client"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/aerogo/log"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
var colorPool = []*color.Color{
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/kitsu"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -37,7 +37,7 @@ func main() {
|
||||
Attributes: []*arn.CharacterAttribute{},
|
||||
HasMappings: arn.HasMappings{
|
||||
Mappings: []*arn.Mapping{
|
||||
&arn.Mapping{
|
||||
{
|
||||
Service: "kitsu/character",
|
||||
ServiceID: kitsuCharacter.ID,
|
||||
},
|
||||
|
@ -3,9 +3,9 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/kitsu"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,9 +3,9 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/kitsu"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
|
||||
"github.com/animenotifier/arn/osutils"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
|
||||
"github.com/aerogo/crawler"
|
||||
)
|
||||
|
@ -5,10 +5,10 @@ import (
|
||||
"errors"
|
||||
"os"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/mal"
|
||||
"github.com/animenotifier/mal/parser"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
// Read anime file
|
||||
|
@ -5,9 +5,9 @@ import (
|
||||
"errors"
|
||||
"os"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/mal/parser"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
// Read character file
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func parseCharacterDescription(input string) (output string, attributes []*arn.CharacterAttribute) {
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/mal"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
const imageWidthThreshold = 225
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/aerogo/http/client"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/mal"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
// Sync titles
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/arn/stringutils"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
var tickerFFXIV = time.NewTicker(1100 * time.Millisecond)
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/arn/stringutils"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
var tickerOsu = time.NewTicker(500 * time.Millisecond)
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/arn/stringutils"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
var tickerOW = time.NewTicker(1100 * time.Millisecond)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
|
||||
"github.com/animenotifier/kitsu"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/kitsu"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,9 +3,9 @@ package main
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/shoboi"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -5,9 +5,9 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/twist"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
var rateLimiter = time.NewTicker(500 * time.Millisecond)
|
||||
|
@ -7,9 +7,9 @@ import (
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/aerogo/http/client"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/mssola/user_agent"
|
||||
)
|
||||
|
||||
|
@ -5,10 +5,10 @@ import (
|
||||
"sort"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
// UserRegistrations ...
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/animenotifier/kitsu"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/kitsu"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
|
||||
|
@ -5,10 +5,10 @@ import (
|
||||
"sort"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/arn/autodocs"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
// Get api page.
|
||||
|
@ -5,10 +5,10 @@ import (
|
||||
"sort"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
var jobInfo = map[string]*utils.JobInfo{
|
||||
"kitsu-import-anime": &utils.JobInfo{
|
||||
"kitsu-import-anime": {
|
||||
Name: "kitsu-import-anime",
|
||||
},
|
||||
// "anime-ratings": &utils.JobInfo{
|
||||
|
@ -52,7 +52,7 @@ func CreatePayment(ctx *aero.Context) string {
|
||||
Payer: &paypalsdk.Payer{
|
||||
PaymentMethod: "paypal",
|
||||
},
|
||||
Transactions: []paypalsdk.Transaction{paypalsdk.Transaction{
|
||||
Transactions: []paypalsdk.Transaction{{
|
||||
Amount: &paypalsdk.Amount{
|
||||
Currency: "JPY",
|
||||
Total: amount,
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,7 +4,7 @@ import "github.com/animenotifier/arn"
|
||||
|
||||
var items = []*arn.ShopItem{
|
||||
// 1 month
|
||||
&arn.ShopItem{
|
||||
{
|
||||
ID: "pro-account-1",
|
||||
Name: "PRO Account - 1 month",
|
||||
Price: 300,
|
||||
@ -27,7 +27,7 @@ Includes:
|
||||
},
|
||||
|
||||
// 3 months
|
||||
&arn.ShopItem{
|
||||
{
|
||||
ID: "pro-account-3",
|
||||
Name: "PRO Account - 3 months",
|
||||
Price: 900,
|
||||
@ -50,7 +50,7 @@ Includes:
|
||||
},
|
||||
|
||||
// 6 months
|
||||
&arn.ShopItem{
|
||||
{
|
||||
ID: "pro-account-6",
|
||||
Name: "PRO Account - 6 months",
|
||||
Price: 1600,
|
||||
@ -71,7 +71,7 @@ Includes:
|
||||
Order: 3,
|
||||
Consumable: true,
|
||||
},
|
||||
&arn.ShopItem{
|
||||
{
|
||||
ID: "pro-account-12",
|
||||
Name: "PRO Account - 1 year",
|
||||
Price: 3000,
|
||||
@ -92,7 +92,7 @@ Includes:
|
||||
Order: 4,
|
||||
Consumable: true,
|
||||
},
|
||||
&arn.ShopItem{
|
||||
{
|
||||
ID: "pro-account-24",
|
||||
Name: "PRO Account - 2 years",
|
||||
Price: 5900,
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"html"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
// Shell parameters
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/aerogo/nano"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
// Shell parameters
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,9 +3,9 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/arn/autocorrect"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/mal"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
var malDB = arn.Node.Namespace("mal").RegisterTypes((*mal.Anime)(nil))
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -13,8 +13,8 @@ import (
|
||||
_ "image/png"
|
||||
|
||||
"github.com/aerogo/http/client"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
var ticker = time.NewTicker(50 * time.Millisecond)
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"fmt"
|
||||
"sort"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
const maxNotificationsPerUser = 30
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/arn/autocorrect"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -9,8 +9,8 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
|
||||
icolor "image/color"
|
||||
_ "image/gif"
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"flag"
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
// Shell parameters
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,9 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/arn/stringutils"
|
||||
"github.com/akyoto/color"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,8 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"flag"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
// Shell parameters
|
||||
|
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"regexp"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
var flaggedWords = regexp.MustCompile("fuck|fucking|freaking|shit|bad|terrible|awful|wtf")
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"path"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
func configureHTTPS(app *aero.Application) {
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"path"
|
||||
"time"
|
||||
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/akyoto/color"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
|
||||
// JobInfo gives you information about a background job.
|
||||
|
@ -2,7 +2,7 @@ package routetests
|
||||
|
||||
var routeTests = map[string][]string{
|
||||
// User
|
||||
"/user/:nick": []string{
|
||||
"/user/:nick": {
|
||||
"/+Akyoto",
|
||||
},
|
||||
|
||||
@ -58,188 +58,188 @@ var routeTests = map[string][]string{
|
||||
// "/+Akyoto/stats",
|
||||
// },
|
||||
|
||||
"/user/:nick/animelist/anime/:id": []string{
|
||||
"/user/:nick/animelist/anime/:id": {
|
||||
"/+Akyoto/animelist/anime/74y2cFiiR",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/watching": []string{
|
||||
"/user/:nick/animelist/watching": {
|
||||
"/+Akyoto/animelist/watching",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/watching/from/:index": []string{
|
||||
"/user/:nick/animelist/watching/from/:index": {
|
||||
"/+Akyoto/animelist/watching/from/1",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/completed": []string{
|
||||
"/user/:nick/animelist/completed": {
|
||||
"/+Akyoto/animelist/completed",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/completed/from/:index": []string{
|
||||
"/user/:nick/animelist/completed/from/:index": {
|
||||
"/+Akyoto/animelist/completed/from/3",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/planned": []string{
|
||||
"/user/:nick/animelist/planned": {
|
||||
"/+Akyoto/animelist/planned",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/planned/from/:index": []string{
|
||||
"/user/:nick/animelist/planned/from/:index": {
|
||||
"/+Akyoto/animelist/planned/from/3",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/hold": []string{
|
||||
"/user/:nick/animelist/hold": {
|
||||
"/+Akyoto/animelist/hold",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/hold/from/:index": []string{
|
||||
"/user/:nick/animelist/hold/from/:index": {
|
||||
"/+Akyoto/animelist/hold/from/3",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/dropped": []string{
|
||||
"/user/:nick/animelist/dropped": {
|
||||
"/+Akyoto/animelist/dropped",
|
||||
},
|
||||
|
||||
"/user/:nick/animelist/dropped/from/:index": []string{
|
||||
"/user/:nick/animelist/dropped/from/:index": {
|
||||
"/+Akyoto/animelist/dropped/from/3",
|
||||
},
|
||||
|
||||
"/user/:nick/anime/recommended": []string{
|
||||
"/user/:nick/anime/recommended": {
|
||||
"/+Akyoto/anime/recommended",
|
||||
},
|
||||
|
||||
"/user/:nick/anime/sequels": []string{
|
||||
"/user/:nick/anime/sequels": {
|
||||
"/+Akyoto/anime/sequels",
|
||||
},
|
||||
|
||||
"/users/country/:country": []string{
|
||||
"/users/country/:country": {
|
||||
"/users/country/japan",
|
||||
},
|
||||
|
||||
// Pages
|
||||
"/anime/:id": []string{
|
||||
"/anime/:id": {
|
||||
"/anime/74y2cFiiR",
|
||||
},
|
||||
|
||||
"/anime/:id/characters": []string{
|
||||
"/anime/:id/characters": {
|
||||
"/anime/74y2cFiiR/characters",
|
||||
},
|
||||
|
||||
"/anime/:id/episodes": []string{
|
||||
"/anime/:id/episodes": {
|
||||
"/anime/74y2cFiiR/episodes",
|
||||
},
|
||||
|
||||
"/anime/:id/comments": []string{
|
||||
"/anime/:id/comments": {
|
||||
"/anime/74y2cFiiR/comments",
|
||||
},
|
||||
|
||||
"/anime/:id/tracks": []string{
|
||||
"/anime/:id/tracks": {
|
||||
"/anime/74y2cFiiR/tracks",
|
||||
},
|
||||
|
||||
"/anime/:id/relations": []string{
|
||||
"/anime/:id/relations": {
|
||||
"/anime/74y2cFiiR/relations",
|
||||
},
|
||||
|
||||
"/thread/:id": []string{
|
||||
"/thread/:id": {
|
||||
"/thread/HJgS7c2K",
|
||||
},
|
||||
|
||||
"/post/:id": []string{
|
||||
"/post/:id": {
|
||||
"/post/B1RzshnK",
|
||||
},
|
||||
|
||||
"/forum/:tag": []string{
|
||||
"/forum/:tag": {
|
||||
"/forum/general",
|
||||
},
|
||||
|
||||
"/genre/:name": []string{
|
||||
"/genre/:name": {
|
||||
"/genre/action",
|
||||
},
|
||||
|
||||
"/company/:id": []string{
|
||||
"/company/:id": {
|
||||
"/company/xCAUr7UkRaz",
|
||||
},
|
||||
|
||||
"/company/:id/history": []string{
|
||||
"/company/:id/history": {
|
||||
"/company/xCAUr7UkRaz/history",
|
||||
},
|
||||
|
||||
"/companies/from/:index": []string{
|
||||
"/companies/from/:index": {
|
||||
"/companies/from/3",
|
||||
},
|
||||
|
||||
"/explore/color/:color/anime": []string{
|
||||
"/explore/color/:color/anime": {
|
||||
"/explore/color/hsl:0.050,0.25,0.5/anime",
|
||||
},
|
||||
|
||||
"/explore/color/:color/anime/from/:index": []string{
|
||||
"/explore/color/:color/anime/from/:index": {
|
||||
"/explore/color/hsl:0.050,0.25,0.5/anime/from/3",
|
||||
},
|
||||
|
||||
"/search/:term": []string{
|
||||
"/search/:term": {
|
||||
"/search/Dragon Ball",
|
||||
},
|
||||
|
||||
"/quote/:id": []string{
|
||||
"/quote/:id": {
|
||||
"/quote/gUZugd6zR",
|
||||
},
|
||||
|
||||
"/quote/:id/edit": []string{
|
||||
"/quote/:id/edit": {
|
||||
"/quote/gUZugd6zR/edit",
|
||||
},
|
||||
|
||||
"/quote/:id/history": []string{
|
||||
"/quote/:id/history": {
|
||||
"/quote/gUZugd6zR/history",
|
||||
},
|
||||
|
||||
"/quotes/from/:index": []string{
|
||||
"/quotes/from/:index": {
|
||||
"/quotes/from/2",
|
||||
},
|
||||
|
||||
"/quotes/best/from/:index": []string{
|
||||
"/quotes/best/from/:index": {
|
||||
"/quotes/best/from/2",
|
||||
},
|
||||
|
||||
"/soundtrack/:id": []string{
|
||||
"/soundtrack/:id": {
|
||||
"/soundtrack/h0ac8sKkg",
|
||||
},
|
||||
|
||||
"/soundtrack/:id/lyrics": []string{
|
||||
"/soundtrack/:id/lyrics": {
|
||||
"/soundtrack/vS64GbpzR/lyrics",
|
||||
},
|
||||
|
||||
"/soundtrack/:id/edit": []string{
|
||||
"/soundtrack/:id/edit": {
|
||||
"/soundtrack/h0ac8sKkg/edit",
|
||||
},
|
||||
|
||||
"/soundtrack/:id/history": []string{
|
||||
"/soundtrack/:id/history": {
|
||||
"/soundtrack/h0ac8sKkg/history",
|
||||
},
|
||||
|
||||
"/soundtracks": []string{
|
||||
"/soundtracks": {
|
||||
"/soundtracks",
|
||||
},
|
||||
|
||||
"/soundtracks/from/:index": []string{
|
||||
"/soundtracks/from/:index": {
|
||||
"/soundtracks/from/12",
|
||||
},
|
||||
|
||||
"/soundtracks/best": []string{
|
||||
"/soundtracks/best": {
|
||||
"/soundtracks/best",
|
||||
},
|
||||
|
||||
"/soundtracks/best/from/:index": []string{
|
||||
"/soundtracks/best/from/:index": {
|
||||
"/soundtracks/best/from/12",
|
||||
},
|
||||
|
||||
"/soundtracks/tag/:tag": []string{
|
||||
"/soundtracks/tag/:tag": {
|
||||
"/soundtracks/tag/moe",
|
||||
},
|
||||
|
||||
"/soundtracks/tag/:tag/from/:index": []string{
|
||||
"/soundtracks/tag/:tag/from/:index": {
|
||||
"/soundtracks/tag/moe/from/3",
|
||||
},
|
||||
|
||||
"/character/:id": []string{
|
||||
"/character/:id": {
|
||||
"/character/dfrNQrmmg-",
|
||||
},
|
||||
|
||||
@ -251,165 +251,165 @@ var routeTests = map[string][]string{
|
||||
// "/mal/character/498",
|
||||
// },
|
||||
|
||||
"/compare/animelist/:nick-1/:nick-2": []string{
|
||||
"/compare/animelist/:nick-1/:nick-2": {
|
||||
"/compare/animelist/Akyoto/Scott",
|
||||
},
|
||||
|
||||
"/explore/anime/:year/:season/:status/:type": []string{
|
||||
"/explore/anime/:year/:season/:status/:type": {
|
||||
"/explore/anime/2011/any/finished/tv",
|
||||
},
|
||||
|
||||
// AMV
|
||||
"/amv/:id": []string{
|
||||
"/amv/:id": {
|
||||
"/amv/07scvSWmg",
|
||||
},
|
||||
|
||||
"/amv/:id/edit": []string{
|
||||
"/amv/:id/edit": {
|
||||
"/amv/07scvSWmg/edit",
|
||||
},
|
||||
|
||||
"/amv/:id/history": []string{
|
||||
"/amv/:id/history": {
|
||||
"/amv/07scvSWmg/history",
|
||||
},
|
||||
|
||||
// AMVs
|
||||
"/amvs/from/:index": []string{
|
||||
"/amvs/from/:index": {
|
||||
"/amvs/from/3",
|
||||
},
|
||||
|
||||
"/amvs/best/from/:index": []string{
|
||||
"/amvs/best/from/:index": {
|
||||
"/amvs/best/from/3",
|
||||
},
|
||||
|
||||
// Redirects
|
||||
"/mal/anime/:id": []string{
|
||||
"/mal/anime/:id": {
|
||||
"/mal/anime/33352",
|
||||
},
|
||||
|
||||
"/kitsu/anime/:id": []string{
|
||||
"/kitsu/anime/:id": {
|
||||
"/kitsu/anime/12230",
|
||||
},
|
||||
|
||||
"/anilist/anime/:id": []string{
|
||||
"/anilist/anime/:id": {
|
||||
"/anilist/anime/21827",
|
||||
},
|
||||
|
||||
// API
|
||||
"/api/anime/:id": []string{
|
||||
"/api/anime/:id": {
|
||||
"/api/anime/74y2cFiiR",
|
||||
},
|
||||
|
||||
"/api/thread/:id": []string{
|
||||
"/api/thread/:id": {
|
||||
"/api/thread/HJgS7c2K",
|
||||
},
|
||||
|
||||
"/api/post/:id": []string{
|
||||
"/api/post/:id": {
|
||||
"/api/post/B1RzshnK",
|
||||
},
|
||||
|
||||
"/api/animelist/:id": []string{
|
||||
"/api/animelist/:id": {
|
||||
"/api/animelist/4J6qpK1ve",
|
||||
},
|
||||
|
||||
"/api/settings/:id": []string{
|
||||
"/api/settings/:id": {
|
||||
"/api/settings/4J6qpK1ve",
|
||||
},
|
||||
|
||||
"/api/user/:id": []string{
|
||||
"/api/user/:id": {
|
||||
"/api/user/4J6qpK1ve",
|
||||
},
|
||||
|
||||
"/api/googletouser/:id": []string{
|
||||
"/api/googletouser/:id": {
|
||||
"/api/googletouser/106530160120373282283",
|
||||
},
|
||||
|
||||
"/api/facebooktouser/:id": []string{
|
||||
"/api/facebooktouser/:id": {
|
||||
"/api/facebooktouser/10207576239700188",
|
||||
},
|
||||
|
||||
"/api/nicktouser/:id": []string{
|
||||
"/api/nicktouser/:id": {
|
||||
"/api/nicktouser/Akyoto",
|
||||
},
|
||||
|
||||
"/api/analytics/:id": []string{
|
||||
"/api/analytics/:id": {
|
||||
"/api/analytics/4J6qpK1ve",
|
||||
},
|
||||
|
||||
"/api/soundtrack/:id": []string{
|
||||
"/api/soundtrack/:id": {
|
||||
"/api/soundtrack/h0ac8sKkg",
|
||||
},
|
||||
|
||||
"/api/userfollows/:id": []string{
|
||||
"/api/userfollows/:id": {
|
||||
"/api/userfollows/4J6qpK1ve",
|
||||
},
|
||||
|
||||
"/api/animecharacters/:id": []string{
|
||||
"/api/animecharacters/:id": {
|
||||
"/api/animecharacters/74y2cFiiR",
|
||||
},
|
||||
|
||||
"/api/animerelations/:id": []string{
|
||||
"/api/animerelations/:id": {
|
||||
"/api/animerelations/74y2cFiiR",
|
||||
},
|
||||
|
||||
"/api/animeepisodes/:id": []string{
|
||||
"/api/animeepisodes/:id": {
|
||||
"/api/animeepisodes/74y2cFiiR",
|
||||
},
|
||||
|
||||
"/anime/:id/episode/:episode-number": []string{
|
||||
"/anime/:id/episode/:episode-number": {
|
||||
"/anime/74y2cFiiR/episode/5",
|
||||
},
|
||||
|
||||
"/api/amv/:id": []string{
|
||||
"/api/amv/:id": {
|
||||
"/api/amv/07scvSWmg",
|
||||
},
|
||||
|
||||
"/api/character/:id": []string{
|
||||
"/api/character/:id": {
|
||||
"/api/character/dfrNQrmmg-",
|
||||
},
|
||||
|
||||
"/api/company/:id": []string{
|
||||
"/api/company/:id": {
|
||||
"/api/company/xCAUr7UkRaz",
|
||||
},
|
||||
|
||||
"/api/draftindex/:id": []string{
|
||||
"/api/draftindex/:id": {
|
||||
"/api/draftindex/4J6qpK1ve",
|
||||
},
|
||||
|
||||
"/api/inventory/:id": []string{
|
||||
"/api/inventory/:id": {
|
||||
"/api/inventory/4J6qpK1ve",
|
||||
},
|
||||
|
||||
"/api/shopitem/:id": []string{
|
||||
"/api/shopitem/:id": {
|
||||
"/api/shopitem/pro-account-3",
|
||||
},
|
||||
|
||||
"/api/notification/:id": []string{
|
||||
"/api/notification/:id": {
|
||||
"/api/notification/q6Y6eraig",
|
||||
},
|
||||
|
||||
"/api/quote/:id": []string{
|
||||
"/api/quote/:id": {
|
||||
"/api/quote/GXp675zmR",
|
||||
},
|
||||
|
||||
"/api/usernotifications/:id": []string{
|
||||
"/api/usernotifications/:id": {
|
||||
"/api/usernotifications/4J6qpK1ve",
|
||||
},
|
||||
|
||||
"/api/pushsubscriptions/:id": []string{
|
||||
"/api/pushsubscriptions/:id": {
|
||||
"/api/pushsubscriptions/4J6qpK1ve",
|
||||
},
|
||||
|
||||
// Images
|
||||
"/images/*file": []string{
|
||||
"/images/*file": {
|
||||
"/images/elements/no-avatar.svg",
|
||||
},
|
||||
|
||||
// Extra tests for higher coverage
|
||||
"/_/+Akyoto": []string{
|
||||
"/_/+Akyoto": {
|
||||
"/_/+Akyoto",
|
||||
},
|
||||
|
||||
"/_/search/dragon": []string{
|
||||
"/_/search/dragon": {
|
||||
"/_/search/dragon",
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user