package config

import (
	"regexp"
	"time"
)

const NAME = "<b>üöÄ Signum Explorer Bot</b>"
const VERSION = "<i>v.1.9.0</i>"

const (
	COMMAND_START     = "/start"
	COMMAND_ADD       = "/add"
	COMMAND_DEL       = "/del"
	COMMAND_PRICE     = "/price"
	COMMAND_CALC      = "/calc"
	COMMAND_CONVERT   = "/convert"
	COMMAND_NETWORK   = "/network"
	COMMAND_CROSSING  = "/crossing"
	COMMAND_FAUCET    = "/faucet"
	COMMAND_THRESHOLD = "/threshold"
	COMMAND_INFO      = "/info"
	COMMAND_P         = "/p"
	COMMAND_C         = "/c"
	COMMAND_PC        = "/pc"
)

const (
	BUTTON_PRICES  = "üíµ Price"
	BUTTON_NETWORK = "üíª Network"
	BUTTON_CALC    = "üìÉ Calc"
	BUTTON_CONVERT = "üí± Convert"
	BUTTON_INFO    = "‚Ñπ Info"
	BUTTON_BACK    = "‚¨Ö Back"
	BUTTON_REFRESH = "‚Ü™ Refresh"
	BUTTON_NEXT    = "Next ‚è©"
	BUTTON_PREV    = "‚è™ Prev"
)

const INSTRUCTION_TEXT = `
Send any <b>Signum Account</b> (S-XXXX-XXXX-XXXX-XXXXX or numeric ID) to explore it once.
Send <b>` + COMMAND_ADD + ` ACCOUNT [ALIAS]</b> to constantly add an account into your main menu and <b>` + COMMAND_DEL + ` [ACCOUNT or ALIAS]</b> to remove it from there.
Send <b>` + COMMAND_THRESHOLD + ` [AMOUNT of SIGNA]</b> to set a lower threshold for notifications.
Send <b>` + COMMAND_CALC + ` TiB COMMITMENT</b> (or just <b>` + COMMAND_CALC + ` TiB</b>) to calculate your expected mining rewards.
Send <b>` + COMMAND_PRICE + `</b> to get up-to-date currency quotes.
Send <b>` + COMMAND_CONVERT + `</b> for currency converter SIGNA / USD / BTC
Send <b>` + COMMAND_NETWORK + `</b> to get Signum Network statistic.
Send <b>` + COMMAND_CROSSING + `</b> to check your plots crossing (they should not overlap to maximize mining profit).
Send <b>` + COMMAND_FAUCET + `</b> to get some free SIGNA.
Send <b>` + COMMAND_INFO + `</b> for information.
`

const AUTHOR_TEXT = `
üë¶ <i>Author:</i> @AnatoliyB
üìí <i>GitHub:</i> https://github.com/xDWart/signum-explorer-bot
üí∞ <i>Donate:</i> <code>S-8N2F-TDD7-4LY6-64FZ7</code>`

const (
	DAY   = 24 * time.Hour
	WEEK  = 7 * DAY
	MONTH = 30 * DAY
	ALL   = 100 * 12 * MONTH
)

const (
	DB_CONFIG_ORDINARY_FAUCET_AMOUNT = "ORDINARY_FAUCET_AMOUNT"
	DB_CONFIG_NEW_USERS_EXTRA_FAUCET = "NEW_USERS_EXTRA_FAUCET"
	DB_CONFIG_EXTRA_FAUCET_AMOUNT    = "EXTRA_FAUCET_AMOUNT"
)

const FAUCET_ACCOUNT = "S-8N2F-TDD7-4LY6-64FZ7"
const FAUCET_DAYS_PERIOD = 7

var ValidAccount = regexp.MustCompile(`^[0-9]{1,}$`)
var ValidAccountRS = regexp.MustCompile(`^(S|BURST)-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{5}$`)
