plugins

package
v0.0.0-...-003bd84 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPasta

func GetPasta(w http.ResponseWriter, r *http.Request) interface{}

func HandlePastaCreation

func HandlePastaCreation(w http.ResponseWriter, r *http.Request) error

func RunPasta

func RunPasta(args []string, s *discordgo.Session, m *discordgo.MessageCreate)

Types

type Drama

type Drama struct {
	Parse struct {
		Text struct {
			Content string `json:"*"`
		}
		Externallinks []string
	}
	// contains filtered or unexported fields
}

func NewDrama

func NewDrama() *Drama

func (*Drama) Run

func (self *Drama) Run(args []string, s *discordgo.Session, m *discordgo.MessageCreate)

type Pasta

type Pasta struct {
	ID, Server, Title, Content, Creator string
}

func RetreiveAll

func RetreiveAll(server string) []*Pasta

func RetreiveByID

func RetreiveByID(id, server string) *Pasta

func RetreiveByTitle

func RetreiveByTitle(query, server string) *Pasta

type PastaResponse

type PastaResponse struct {
	Current *Pasta
	List    []*Pasta
	Server  string
}

Jump to

Keyboard shortcuts

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