clicker

package
v0.0.0-...-8b0e583 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InfoLogger    = NewLogger("INFO: ", color.New(color.FgWhite).SprintFunc())
	SuccessLogger = NewLogger("SUCCESS: ", color.New(color.FgGreen).SprintFunc())
	WarningLogger = NewLogger("WARNING: ", color.New(color.FgYellow).SprintFunc())
	ErrorLogger   = NewLogger("ERROR: ", color.New(color.FgRed).SprintFunc())
	DebugLogger   = NewLogger("DEBUG: ", color.New(color.FgHiBlack).SprintFunc())
)

Functions

func Check_localhost

func Check_localhost(proxy string) *tls.Config

func ClickerStart

func ClickerStart()

func NewLogger

func NewLogger(prefix string, colorFunc func(a ...interface{}) string) *log.Logger

Types

type Accounts_data

type Accounts_data map[string]Accounts_struct

type Accounts_struct

type Accounts_struct struct {
	APIID   int    `json:"api_id"`
	APIHash string `json:"api_hash"`
	Proxy   string `json:"proxy"`
}

type Active_turbo_data

type Active_turbo_data struct {
	Multiple int   `json:"multiple"`
	Expire   int64 `json:"expire"`
}

type Active_turbo_resp

type Active_turbo_resp struct {
	Ok   bool                `json:"ok"`
	Data []Active_turbo_data `json:"data"`
}

type Buy_item_resp

type Buy_item_resp struct {
	OK   bool        `json:"ok"`
	Data Item_buying `json:"data"`
}

type Click_resp

type Click_resp struct {
	Ok   bool             `json:"ok"`
	Data []Click_respdata `json:"data"`
}

type Click_resp_no_slice

type Click_resp_no_slice struct {
	Ok   bool           `json:"ok"`
	Data Click_respdata `json:"data"`
}

type Click_respdata

type Click_respdata struct {
	Id                 int         `json:"id"`
	UserId             int         `json:"userId"`
	TeamId             int         `json:"teamId"`
	LeagueId           int         `json:"leagueId"`
	LimitCoins         int         `json:"limitCoins"`
	TotalCoins         string      `json:"totalCoins"`
	BalanceCoins       string      `json:"balanceCoins"`
	SpentCoins         string      `json:"spentCoins"`
	MiningPerTime      int         `json:"miningPerTime"`
	MultipleClicks     int         `json:"multipleClicks"`
	AutoClicks         int         `json:"autoClicks"`
	WithRobot          bool        `json:"withRobot"`
	LastMiningAt       string      `json:"lastMiningAt"`
	LastAvailableCoins int         `json:"lastAvailableCoins"`
	TurboTimes         int         `json:"turboTimes"`
	Avatar             interface{} `json:"avatar"`
	CreatedAt          string      `json:"createdAt"`
	Hash               []string    `json:"hash"`
	AvailableCoins     int         `json:"availableCoins"`
}

type ColorableWriter

type ColorableWriter struct {
	Console io.Writer
	File    io.Writer
	Prefix  string
	Color   func(a ...interface{}) string
}

func (*ColorableWriter) Write

func (cw *ColorableWriter) Write(p []byte) (n int, err error)

type Item_buying

type Item_buying struct {
	ID                 int       `json:"id"`
	UserID             int       `json:"userId"`
	TeamID             int       `json:"teamId"`
	LeagueID           int       `json:"leagueId"`
	LimitCoins         int       `json:"limitCoins"`
	TotalCoins         string    `json:"totalCoins"`
	BalanceCoins       string    `json:"balanceCoins"`
	SpentCoins         string    `json:"spentCoins"`
	MiningPerTime      int       `json:"miningPerTime"`
	MultipleClicks     int       `json:"multipleClicks"`
	AutoClicks         int       `json:"autoClicks"`
	WithRobot          bool      `json:"withRobot"`
	LastMiningAt       time.Time `json:"lastMiningAt"`
	LastAvailableCoins int       `json:"lastAvailableCoins"`
	TurboTimes         int       `json:"turboTimes"`
	Avatar             string    `json:"avatar"`
	CreatedAt          time.Time `json:"createdAt"`
}

type Itemstore_data

type Itemstore_data struct {
	ID                int       `json:"id"`
	Name              string    `json:"name"`
	Description       string    `json:"description"`
	Type              string    `json:"type"`
	Image             string    `json:"image"`
	Coins             int       `json:"coins"`
	Price             int       `json:"price"`
	Max               int       `json:"max"`
	Coefficient       int       `json:"coefficient"`
	IsPartner         bool      `json:"isPartner"`
	IsTask            bool      `json:"isTask"`
	IsFeatured        bool      `json:"isFeatured"`
	Status            string    `json:"status"`
	MinLeagueID       int       `json:"minLeagueId"`
	ChallengeID       int       `json:"challengeId"`
	LiveTimeInSeconds int       `json:"liveTimeInSeconds"`
	CreatedAt         time.Time `json:"createdAt"`
	IsCompleted       bool      `json:"isCompleted"`
	Count             int       `json:"count"`
}

type Notcoin

type Notcoin struct {
	Ses   Session
	Proxy string

	Clear_name   string
	Path_file    string
	TG_appID     int
	TG_appHash   string
	TGWebAppData string

	Need_sleep_10 bool
	//UserId        int
	UserId      string
	Coefficient int // multipleClicks

	Fullenergy_boost   int
	Count_400          int
	LimitCoins         int
	LastAvailableCoins int
	BalanceCoins       string
	Turbo              bool
	Timestart_turbo    int64
	Turbo_boost_count  int
	Hash               int
}

func (*Notcoin) ActiveTask

func (not *Notcoin) ActiveTask(idTask int) bool

func (*Notcoin) BuyItem

func (not *Notcoin) BuyItem(item int) (bool, string)

func (*Notcoin) SetSession

func (notcoin *Notcoin) SetSession() error

func (*Notcoin) Set_default_values

func (notcoin *Notcoin) Set_default_values()

func (*Notcoin) TurboActivate

func (not *Notcoin) TurboActivate()

func (*Notcoin) UpdateBoosters

func (not *Notcoin) UpdateBoosters()

func (*Notcoin) UpdateShop

func (not *Notcoin) UpdateShop()

type Response

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

func (*Response) Error

func (res *Response) Error() string

func (*Response) String

func (res *Response) String() string

type Session

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

func CreateSession

func CreateSession() Session

func (*Session) Getreq

func (session *Session) Getreq(url string) *Response

func (*Session) Patchreq

func (session *Session) Patchreq(url string, data_str string) *Response

func (*Session) Postreq

func (session *Session) Postreq(url string, data_str string) *Response

func (*Session) Set_proxy

func (session *Session) Set_proxy(proxy string) error

type Store_resp

type Store_resp struct {
	OK   bool             `json:"ok"`
	Data []Itemstore_data `json:"data"`
}

type Task_completed_data

type Task_completed_data struct {
	Id        int       `json:"id"`
	Name      string    `json:"name"`
	Type      string    `json:"type"`
	Coins     int       `json:"coins"`
	Max       int       `json:"max"`
	Link      string    `json:"link"`
	Image     string    `json:"image"`
	Status    string    `json:"status"`
	IsDaily   bool      `json:"isDaily"`
	EntityId  string    `json:"entityId"`
	CreatedAt time.Time `json:"createdAt"`
}

type Task_completed_resp

type Task_completed_resp struct {
	Ok   bool              `json:"ok"`
	Data []Tasks_completed `json:"data"`
}

type Tasks_completed

type Tasks_completed struct {
	Id        int                 `json:"id"`
	TaskId    int                 `json:"taskId"`
	UserId    int                 `json:"userId"`
	CreatedAt time.Time           `json:"createdAt"`
	Task      Task_completed_data `json:"task"`
}

type Webappses_resp

type Webappses_resp struct {
	Ok   bool `json:"ok"`
	Data struct {
		UserID       int    `json:"userId"`
		AccessToken  string `json:"accessToken"`
		RefreshToken string `json:"refreshToken"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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