esammy

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: ISC Imports: 25 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 {
	Ctx *bot.Context
	// contains filtered or unexported fields
}

func New

func New(client *http.Client, tenorkey string) *Bot

func (*Bot) Caption

func (bot *Bot) Caption(m *gateway.MessageCreateEvent, raw bot.RawArguments) error

func (*Bot) Edit added in v0.2.0

func (bot *Bot) Edit(m *gateway.MessageCreateEvent, cmd editArguments) error

func (*Bot) Meme

func (bot *Bot) Meme(m *gateway.MessageCreateEvent, args MemeArguments) error

func (*Bot) Motivate

func (bot *Bot) Motivate(m *gateway.MessageCreateEvent, args MemeArguments) error

func (*Bot) Ping

func (b *Bot) Ping(m *gateway.MessageCreateEvent) error

type Media

type Media struct {
	URL    string
	Height int
	Width  int
	Type   mediaType
}

type MemeArguments

type MemeArguments struct {
	Top,
	Bottom string
}

func (*MemeArguments) CustomParse

func (m *MemeArguments) CustomParse(args string) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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