Documentation ¶
Index ¶
- Variables
- type WordleBot
- func (wb *WordleBot) Start() error
- func (wb *WordleBot) Stop() error
- func (wb *WordleBot) Wordle(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (wb *WordleBot) WordleGuess(s *discordgo.Session, i *discordgo.InteractionCreate)
- func (wb *WordleBot) WordleStart(s *discordgo.Session, i *discordgo.InteractionCreate)
Constants ¶
This section is empty.
Variables ¶
View Source
var WordleApplicationCommands = []*discordgo.ApplicationCommand{ { Name: "start", Description: "Start a new wordle", Type: discordgo.ChatApplicationCommand, Options: []*discordgo.ApplicationCommandOption{ { Name: "word_length", Description: "The length of the word to be used in the wordle", Type: discordgo.ApplicationCommandOptionInteger, }, }, }, { Name: "guess", Description: "Guess a word in the wordle", Type: discordgo.ChatApplicationCommand, Options: []*discordgo.ApplicationCommandOption{ { Name: "word", Description: "The word to guess", Type: discordgo.ApplicationCommandOptionString, Required: true, }, }, }, { Name: "stop", Description: "Stop the current wordle", Type: discordgo.ChatApplicationCommand, }, }
Functions ¶
This section is empty.
Types ¶
type WordleBot ¶
type WordleBot struct {
// contains filtered or unexported fields
}
func (*WordleBot) Wordle ¶
func (wb *WordleBot) Wordle(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*WordleBot) WordleGuess ¶
func (wb *WordleBot) WordleGuess(s *discordgo.Session, i *discordgo.InteractionCreate)
func (*WordleBot) WordleStart ¶
func (wb *WordleBot) WordleStart(s *discordgo.Session, i *discordgo.InteractionCreate)
Click to show internal directories.
Click to hide internal directories.