manager

package
v0.0.0-...-b0a7dda Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuildManager

type GuildManager struct {
	Session *discordgo.Session
	Bots    map[string]map[string]botsdef.Discord
	// contains filtered or unexported fields
}

func NewGuildManager

func NewGuildManager(session *discordgo.Session, bots map[string]map[string]botsdef.Discord) *GuildManager

NewGuildManager creates a new GuildManager with the given discord session and bot instances.

Parameters: - session: *discordgo.Session - botInstances: map[string]*discord.BotInstance Return type: *GuildManager

func (*GuildManager) Commands

func (gm *GuildManager) Commands(s *discordgo.Session, m *discordgo.MessageCreate)

Commands handles the commands received in a Discord session message.

Parameters:

  • s: a pointer to the Discord session
  • m: a pointer to the Discord message received

func (*GuildManager) Start

func (gm *GuildManager) Start()

Start starts the GuildManager.

Jump to

Keyboard shortcuts

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