coins

package
v0.0.0-...-916f762 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Transaction_UNKNOWN transaction_type = iota
	Transaction_PAY
	Transaction_LOAN
)
View Source
const (
	TRANSACTIONS_CHANNEL string = "818736444835233792"
	STARTING_AMOUNT      coins  = 1000
	// 0.1% interest every hour
	INTEREST_PER_HOUR float64       = 0.001
	INTEREST_INTERVAL time.Duration = time.Hour
	// Emoji ids
	ACCEPT_ID  string = "🚰" // Potable water
	DECLINE_ID string = "🚱" // Non potable water
	OK_ID      string = "🆗" // OK Emoji
)

Variables

This section is empty.

Functions

func AddHandlers

func AddHandlers(s *discordgo.Session)

Types

type UserAmount

type UserAmount struct {
	User   string `fauna:"user"`
	Amount coins  `fauna:"amount"`
}

Jump to

Keyboard shortcuts

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