boxbot

package
v0.0.0-...-42d96c5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTag

AddTag adds a tag into a database. It is split up by server (GuildID) Command format: --addtag [tag_name] [content]

func DeleteTag

func DeleteTag(s *discordgo.Session, m *discordgo.MessageCreate)

DeleteTag removes a tag from the database Command format: --deletetag [tag_name]

func GetE621Image

func GetE621Image(s *discordgo.Session, m *discordgo.MessageCreate)

GetE621Image grabs a random image from e621

func GetGelbooruImage

func GetGelbooruImage(s *discordgo.Session, m *discordgo.MessageCreate)

GetGelbooruImage grabs a random image from Gelbooru

func GetTag

GetTag gets a tag from the TagDB Command format: --tag [tag_name]

func HandleBooruImageReactAdded

func HandleBooruImageReactAdded(s *discordgo.Session, r *discordgo.MessageReactionAdd)

HandleBooruImageReactAdded Handles a react being added to a Gelbooru message

func HandleBooruImageReactRemoved

func HandleBooruImageReactRemoved(s *discordgo.Session, r *discordgo.MessageReactionRemove)

HandleBooruImageReactRemoved Handles a react being added to a Gelbooru message

func HandleChoices

func HandleChoices(s *discordgo.Session, m *discordgo.MessageCreate)

HandleChoices sends a item from a list of items

func HandleFrinkiac

func HandleFrinkiac(s *discordgo.Session, m *discordgo.MessageCreate)

HandleFrinkiac sends images from Simpsons quote search engine Frinkiac

func HandleMOAS

func HandleMOAS(s *discordgo.Session, m *discordgo.MessageCreate)

HandleMOAS sends images from Rick & Morty quote search engine Master of All Science

func HandleMorbotron

func HandleMorbotron(s *discordgo.Session, m *discordgo.MessageCreate)

HandleMorbotron sends images from Futurama quote search engine Morbotron

func ListTags

func ListTags(s *discordgo.Session, m *discordgo.MessageCreate)

ListTags sends out a list of all tags for this server

func SendBreedList

func SendBreedList(s *discordgo.Session, m *discordgo.MessageCreate)

SendBreedList sends a list of dog breeds and subbreeds as an embed as a private message

func SendFullWidth

func SendFullWidth(s *discordgo.Session, m *discordgo.MessageCreate)

SendFullWidth sends a message back using full width unicode

func SendHelpEmbed

func SendHelpEmbed(s *discordgo.Session, m *discordgo.MessageCreate)

SendHelpEmbed sends a message containing the bot's commands

func SendInfoEmbed

func SendInfoEmbed(s *discordgo.Session, m *discordgo.MessageCreate)

SendInfoEmbed sends a message containing the bot's version, a link to the repo, and the latest commits

func SendIsThisImage

func SendIsThisImage(s *discordgo.Session, m *discordgo.MessageCreate)

SendIsThisImage loads an image and sends it to the user

func SendRandomDog

func SendRandomDog(s *discordgo.Session, m *discordgo.MessageCreate)

SendRandomDog sends a random dog image from dog.ceo

func SendRedditPost

func SendRedditPost(s *discordgo.Session, m *discordgo.MessageCreate)

SendRedditPost sends the first non sticked post from a subreddit (sorted by best)

func SendRobotQuote

func SendRobotQuote(s *discordgo.Session, m *discordgo.MessageCreate)

SendRobotQuote sends a quote from list of quotes "storage/LeadRobot.txt"

func SendServerInfo

func SendServerInfo(s *discordgo.Session, m *discordgo.MessageCreate)

SendServerInfo sends a message with information about a server

func SendTumblrPost

func SendTumblrPost(s *discordgo.Session, m *discordgo.MessageCreate, key string)

SendTumblrPost sends a random post from a tag

Types

type TumblrTag

type TumblrTag struct {
	Response []struct {
		PostURL string `json:"post_url"`
	} `json:"response"`
}

TumblrTag stuct contains info about a tumblr tag

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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