abot

package
v0.0.0-...-9041e34 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromEnv

func ConfigFromEnv(c *Conf)

func Run

func Run(c Conf) error

Run bot

Types

type Abills

type Abills struct {
	// DBURL::mysql abills url
	DBURL     string `toml:"dburl"`
	SecretKey string `toml:"secretkey"`
	WebURL    string `toml:"url"`
	Names     string `toml:"names"`
}

Abills config part for billing

type Conf

type Conf struct {
	Abills  Abills `toml:"abills"`
	TgToken string `toml:"tgtoken"`
}

Conf config

type UserInf

type UserInf struct {
	ID      string  `db:"id"`
	UID     int     `db:"uid"`
	FIO     string  `db:"fio"`
	Deposit float64 `db:"deposit"`
	Credit  float64 `db:"credit"`
	TP      string  `db:"tarif"`
}

Jump to

Keyboard shortcuts

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