cityheaven

package module
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 12 Imported by: 0

README

cityheaven

cli for cityheaven.

install

$ go install github.com/bonnou-shounen/cityheaven/cmd/cityheaven@latest

usage

sort "my girls" order

$ export CITYHEAVEN_LOGIN=xxxx
$ export CITYHEAVEN_PASSWORD=xxxx

$ cityheaven dump fav casts > fav-casts.txt
$ vim fav-casts.txt  # edit order
$ cityheaven restore fav casts < fav-casts.txt

popular 10 casts on the shop

$ cityheaven dump shop casts --shop=xxxx | sort -k3nr | head -10

new 5 casts there

$ cityheaven dump shop casts --shop=yyyy --no-fav | sort -k1nr | head -5

casts you may talk with

$ cityheaven dump follow casts --mutual > favtalk-casts.txt

Documentation

Index

Constants

View Source
const Version = "0.1.5"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cast

type Cast struct {
	ID           int
	Name         string
	ShopID       int
	ShopName     string
	URLPath      string
	FavCount     int
	NextStart    string
	MutualFollow bool
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) AddFavoriteCast

func (c *Client) AddFavoriteCast(ctx context.Context, cast *Cast) error

func (*Client) AddFavoriteCasts

func (c *Client) AddFavoriteCasts(ctx context.Context, casts []*Cast) error

func (*Client) DeleteFavoriteCast

func (c *Client) DeleteFavoriteCast(ctx context.Context, cast *Cast) error

func (*Client) DeleteFavoriteCasts

func (c *Client) DeleteFavoriteCasts(ctx context.Context, casts []*Cast) error

func (*Client) GetFavoriteCasts

func (c *Client) GetFavoriteCasts(ctx context.Context) ([]*Cast, error)

func (*Client) GetFavoriteCount

func (c *Client) GetFavoriteCount(ctx context.Context, cast *Cast) (int, error)

func (*Client) GetFollowingCasts added in v0.0.18

func (c *Client) GetFollowingCasts(ctx context.Context) ([]*Cast, error)

func (*Client) GetShopAttendees added in v0.0.16

func (c *Client) GetShopAttendees(ctx context.Context, strURL string) ([]*Cast, error)

func (*Client) GetShopCasts

func (c *Client) GetShopCasts(ctx context.Context, strURL string) ([]*Cast, error)

func (*Client) GetShopURL

func (c *Client) GetShopURL(ctx context.Context, area, shop string) (string, error)

func (*Client) Login

func (c *Client) Login(ctx context.Context, id, password string) error

func (*Client) SortFavoriteCasts

func (c *Client) SortFavoriteCasts(ctx context.Context, casts []*Cast) error

type Shop added in v0.0.19

type Shop = Cast

Directories

Path Synopsis
cmd
internal
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL