mock

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

/mock user:<user> - make fun of a user's last sent message anonymously. You will not be shown as the person that executed the slash command

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenMeme

func GenMeme(text string) error

func GetUserLastMessage

func GetUserLastMessage(sess *discordgo.Session, user *discordgo.User, channelID string) (*discordgo.Message, error)

GetUserLastMessage gets the last message sent by a user in a channel. sess: discord session. user: the user to get the message of. channel: the channel to get the message from. return: a discord message and any errors

func MockText

func MockText(text string) string

MockText mock a string by turning over other letter upper case. text: the text to mock. return: the mocked text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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