roll

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 13 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 (r *Roll) Initialize(m data.Models, s *scheduler.BetrayalScheduler)

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