Documentation ¶
Index ¶
- func AddTag(s *discordgo.Session, m *discordgo.MessageCreate)
- func DeleteTag(s *discordgo.Session, m *discordgo.MessageCreate)
- func GetE621Image(s *discordgo.Session, m *discordgo.MessageCreate)
- func GetGelbooruImage(s *discordgo.Session, m *discordgo.MessageCreate)
- func GetTag(s *discordgo.Session, m *discordgo.MessageCreate)
- func HandleBooruImageReactAdded(s *discordgo.Session, r *discordgo.MessageReactionAdd)
- func HandleBooruImageReactRemoved(s *discordgo.Session, r *discordgo.MessageReactionRemove)
- func HandleChoices(s *discordgo.Session, m *discordgo.MessageCreate)
- func HandleFrinkiac(s *discordgo.Session, m *discordgo.MessageCreate)
- func HandleMOAS(s *discordgo.Session, m *discordgo.MessageCreate)
- func HandleMorbotron(s *discordgo.Session, m *discordgo.MessageCreate)
- func ListTags(s *discordgo.Session, m *discordgo.MessageCreate)
- func SendBreedList(s *discordgo.Session, m *discordgo.MessageCreate)
- func SendFullWidth(s *discordgo.Session, m *discordgo.MessageCreate)
- func SendHelpEmbed(s *discordgo.Session, m *discordgo.MessageCreate)
- func SendInfoEmbed(s *discordgo.Session, m *discordgo.MessageCreate)
- func SendIsThisImage(s *discordgo.Session, m *discordgo.MessageCreate)
- func SendRandomDog(s *discordgo.Session, m *discordgo.MessageCreate)
- func SendRedditPost(s *discordgo.Session, m *discordgo.MessageCreate)
- func SendRobotQuote(s *discordgo.Session, m *discordgo.MessageCreate)
- func SendServerInfo(s *discordgo.Session, m *discordgo.MessageCreate)
- func SendTumblrPost(s *discordgo.Session, m *discordgo.MessageCreate, key string)
- type TumblrTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTag ¶
func AddTag(s *discordgo.Session, m *discordgo.MessageCreate)
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 ¶
func GetTag(s *discordgo.Session, m *discordgo.MessageCreate)
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