roll

package
v0.0.0-...-ab9ee8d Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RollLuck

func RollLuck(level float64, roll float64) string

pick a random number between 0 and 1 and select the luck type based on the number

Types

type Roll

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

func (*Roll) Description

func (*Roll) Description() string

Description implements ken.SlashCommand.

func (*Roll) Initialize

func (v *Roll) Initialize(models *data.Models)

func (*Roll) Name

func (*Roll) Name() string

Name implements ken.SlashCommand.

func (*Roll) Options

func (*Roll) Options() []*discordgo.ApplicationCommandOption

Options implements ken.SlashCommand.

func (*Roll) Run

func (r *Roll) Run(ctx ken.Context) (err error)

Run implements ken.SlashCommand.

func (*Roll) Version

func (*Roll) Version() string

Version implements ken.SlashCommand.

Jump to

Keyboard shortcuts

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