ronnie

package
v0.0.0-...-10f3eee Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RonnieD

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

func NewRonnieD

func NewRonnieD(cfg *RonnieDConfig) (*RonnieD, error)

func (*RonnieD) Action

Action sets up a new message that will have buttons for players to click to roll or pay their tab

func (*RonnieD) AddResult

func (c *RonnieD) AddResult(s *discordgo.Session, i *discordgo.InteractionCreate)

AddResult adds a result to a game TODO: move to the roll command. All rolls should be sent and based on the success response we will send a message

func (*RonnieD) CreateGame

func (c *RonnieD) CreateGame(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) GetApplicationCommand

func (c *RonnieD) GetApplicationCommand() *discordgo.ApplicationCommand

func (*RonnieD) GetTab

func (*RonnieD) HandleInteractionCreate

func (c *RonnieD) HandleInteractionCreate(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) HandleMessageCreate

func (c *RonnieD) HandleMessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)

func (*RonnieD) JoinGame

func (c *RonnieD) JoinGame(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) ListTabs

func (c *RonnieD) ListTabs(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) PayDrink

func (c *RonnieD) PayDrink(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) RollBack

func (c *RonnieD) RollBack(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) RonnieActionListTabs

func (c *RonnieD) RonnieActionListTabs(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) RonnieActionPayTab

func (c *RonnieD) RonnieActionPayTab(s *discordgo.Session, i *discordgo.InteractionCreate)

RonnieActionPayTab handles the action of paying a tab

func (*RonnieD) RonnieActionRoll

func (c *RonnieD) RonnieActionRoll(s *discordgo.Session, i *discordgo.InteractionCreate)

Define a function to handle button clicks or other component interactions

func (*RonnieD) RonnieRoll

func (c *RonnieD) RonnieRoll(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) RonnieRollBack

func (c *RonnieD) RonnieRollBack(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) RonnieRolls

func (c *RonnieD) RonnieRolls(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) SessionAssignDrink

func (c *RonnieD) SessionAssignDrink(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) SessionContinue

func (c *RonnieD) SessionContinue(s *discordgo.Session, i *discordgo.InteractionCreate)

SessionContinue marks your entry as complete and updates the main game message

func (*RonnieD) SessionCreate

func (c *RonnieD) SessionCreate(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) SessionJoin

func (c *RonnieD) SessionJoin(s *discordgo.Session, i *discordgo.InteractionCreate)

func (*RonnieD) SessionRoll

func (c *RonnieD) SessionRoll(s *discordgo.Session, i *discordgo.InteractionCreate)

type RonnieDConfig

type RonnieDConfig struct {
	Manager ronnied_actions.Interface
}

Jump to

Keyboard shortcuts

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