bot

package
v0.0.0-...-26efd1a Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Token  string
	Module *Module
	*discord.DiscordService
}

func New

func New(token string, module *Module) (*Bot, error)

New creates a new discord bot instance.

func (*Bot) BuildErrorMessageEmbed

func (bot *Bot) BuildErrorMessageEmbed(message string) *discordgo.MessageEmbed

BuildErrorMessageEmbed builds an embed error message with the given message.

func (*Bot) BuildMessageEmbed

func (bot *Bot) BuildMessageEmbed(message string) *discordgo.MessageEmbed

BuildMessageEmbed builds an embed message with the given message.

func (*Bot) MakeVoiceConnection

func (bot *Bot) MakeVoiceConnection(m *discordgo.MessageCreate) (*music.Voice, error)

MakeVoiceConnection makes a voice connection based on the channel where the message's author is.

type Core

type Core struct {
	Queue *music.Queue
}

type Extension

type Extension struct {
	Youtube *youtube.Client
}

type Module

type Module struct {
	*Core
	*Extension
}

Jump to

Keyboard shortcuts

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