girlfriend

package
v0.0.0-...-fd483a8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func (*App) CreateSession

func (app *App) CreateSession(token string) error

func (*App) DeleteMessage

func (app *App) DeleteMessage(channelID, messageID string)

func (*App) ParseFromMention

func (app *App) ParseFromMention(mention string) *discordgo.User

func (*App) ParseMention

func (app *App) ParseMention(user *discordgo.User) string

func (*App) RunCommand

func (app *App) RunCommand(name string, args []string)

func (*App) SendMessage

func (app *App) SendMessage(channelID, content string)

type Command

type Command interface {
	RunFunc(app *App, args []string)
}

type DiscordChannelCommand

type DiscordChannelCommand struct {
	Func func(app *App, message discordgo.Message, args []string)
}

func (*DiscordChannelCommand) RunFunc

func (channelCommand *DiscordChannelCommand) RunFunc(app *App, args []string)

type Logger

type Logger struct {
}

func (*Logger) Log

func (logger *Logger) Log(text string)

Jump to

Keyboard shortcuts

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