cmds

package
v0.0.0-...-cc926bf Latest Latest
Warning

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

Go to latest
Published: May 27, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Connection = prest.New()
View Source
var VEWords = strings.Split(`:zero: :one: :two: :three: :four: :five: :six: :seven: :eight: :nine: :regional_indicator_a: :regional_indicator_b: :regional_indicator_c: :regional_indicator_d: :regional_indicator_e: :regional_indicator_f: :regional_indicator_g: :regional_indicator_h: :regional_indicator_i: :regional_indicator_j: :regional_indicator_k: :regional_indicator_l: :regional_indicator_m: :regional_indicator_n: :regional_indicator_o: :regional_indicator_p: :regional_indicator_q: :regional_indicator_r: :regional_indicator_s: :regional_indicator_t: :regional_indicator_u: :regional_indicator_v: :regional_indicator_w: :regional_indicator_x: :regional_indicator_y: :regional_indicator_z:`, " ")
View Source
var VoteEmotes = strings.Split(`0⃣ 1⃣ 2⃣ 3⃣ 4⃣ 5⃣ 6⃣ 7⃣ 8⃣ 9⃣ 🇦 🇧 🇨 🇩 🇪 🇫 🇬 🇭 🇮 🇯 🇰 🇱 🇲 🇳 🇴 🇵 🇶 🇷 🇸 🇹 🇺 🇻 🇼 🇽 🇾 🇿`, " ")

Functions

func ClearCommand

func ClearCommand(a core.CommandArgs, v []string) bool

func RedditCommand

func RedditCommand(a core.CommandArgs, v []string) bool

func VoteCommand

func VoteCommand(a core.CommandArgs, v []string) bool

Types

type Agency

type Agency struct {
	ID           int      `json:"id"`
	Name         string   `json:"name"`
	Abbriviation string   `json:"abbrev"`
	Type         int      `json:"type"`
	CountryCode  string   `json:"countryCode"`
	WikiURL      string   `json:"wikiURL"`
	InfoURL      string   `json:"infoURL"`
	InfoURLs     []string `json:"infoURLs"`
}

type AgencyType

type AgencyType struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Calendar

type Calendar struct {
	Offset int `json:"offset"`
	Count  int `json:"count"`
	Total  int `json:"total"`
}

type EventType

type EventType struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Failure

type Failure struct {
	Status  string `json:"status"`
	Message string `json:"msg"`
}

type Launch

type Launch struct {
	Offset   int `json:"offset"`
	Count    int `json:"count"`
	Total    int `json:"total"`
	Launches []struct {
		ID          int       `json:"id"`
		Name        string    `json:"name"`
		Windowstart string    `json:"windowstart"`
		Windowend   string    `json:"windowend"`
		Net         string    `json:"net"`
		Wsstamp     int       `json:"wsstamp"`
		Westamp     int       `json:"westamp"`
		Netstamp    int       `json:"netstamp"`
		Isostart    string    `json:"isostart"`
		Isoend      string    `json:"isoend"`
		Isonet      string    `json:"isonet"`
		Status      int       `json:"status"`
		Inhold      int       `json:"inhold"`
		Tbdtime     int       `json:"tbdtime"`
		VidURLs     []string  `json:"vidURLs"` //depricated??
		VidURL      string    `json:"vidURL"`
		InfoURLs    []string  `json:"infoURLs"`
		InfoURL     string    `json:"infoURL"`
		Holdreason  string    `json:"holdreason"`
		Failreason  string    `json:"failreason"` //depricated??
		Tbddate     int       `json:"tbddate"`
		Probability int       `json:"probability"`
		Hashtag     string    `json:"hashtag"`
		Location    Location  `json:"location"`
		Rocket      Rocket    `json:"rocket"`
		Missions    []Mission `json:"missions"`
	} `json:"launches"`
}

type LaunchEvent

type LaunchEvent struct {
	ID           int    `json:"id"`
	Name         string `json:"name"`
	RelativeTime int    `json:"relativeTime"`
	Type         int    `json:"type"`
	Duration     int    `json:"duration"`
	Description  string `json:"description"`
	ParentID     int    `json:"parentid"`
}

type LaunchStatus

type LaunchStatus struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type Location

type Location struct {
	ID          int      `json:"id"`
	Name        string   `json:"name"`
	CountryCode string   `json:"countryCode"`
	WikiURL     string   `json:"wikiURL"`
	InfoURL     string   `json:"infoURL"`
	InfoURLs    []string `json:"infoURLs"`
}

type Mission

type Mission struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type MissionEvent

type MissionEvent struct {
	ID           int    `json:"id"`
	Name         string `json:"name"`
	RelativeTime int    `json:"relativeTime"`
	Type         int    `json:"type"`
	Duration     int    `json:"duration"`
	Description  string `json:"description"`
	ParentID     int    `json:"parentid"`
}

type MissionType

type MissionType struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Pad

type Pad []struct {
	ID        int      `json:"id"`
	Name      string   `json:"name"`
	InfoURL   string   `json:"infoURL"` //depricated??
	WikiURL   string   `json:"wikiURL"`
	MapURL    string   `json:"mapURL"`
	Latitude  float64  `json:"latitude"`
	Longitude float64  `json:"longitude"`
	Agencies  []Agency `json:"agencies"`
}

type Rocket

type Rocket struct {
	ID            int      `json:"id"`
	Name          string   `json:"name"`
	Configuration string   `json:"configuration"`
	Familyname    string   `json:"familyname"`
	Agencies      []Agency `json:"agencies"`
	WikiURL       string   `json:"wikiURL"`
	InfoURLs      []string `json:"infoURLs"` //depricated??
	ImageURL      string   `json:"imageURL"`
	ImageSizes    []int    `json:"imageSizes"`
}

type SubredditPosts

type SubredditPosts struct {
	Kind string `json:"kind"`
	Data struct {
		Modhash  string `json:"modhash"`
		Children []struct {
			Kind string `json:"kind"`
			Data struct {
				ContestMode           bool        `json:"contest_mode"`
				SubredditNamePrefixed string      `json:"subreddit_name_prefixed"`
				ThumbnailWidth        int         `json:"thumbnail_width"`
				Subreddit             string      `json:"subreddit"`
				SelftextHTML          string      `json:"selftext_html"`
				Selftext              string      `json:"selftext"`
				Likes                 int         `json:"likes,omitepmty"`
				SuggestedSort         string      `json:"suggested_sort"`
				ID                    string      `json:"id"`
				ViewCount             int         `json:"view_count,-"`
				Clicked               bool        `json:"clicked"`
				Author                string      `json:"author"`
				Saved                 bool        `json:"saved"`
				Name                  string      `json:"name"`
				Score                 int         `json:"score"`
				Over18                bool        `json:"over_18"`
				Domain                string      `json:"domain"`
				Hidden                bool        `json:"hidden"`
				Thumbnail             string      `json:"thumbnail"`
				SubredditID           string      `json:"subreddit_id"`
				Edited                interface{} `json:"edited"`
				AuthorFlairCSSClass   string      `json:"author_flair_css_class"`
				Gilded                int         `json:"gilded"`
				Downs                 int         `json:"downs"`
				BrandSafe             bool        `json:"brand_safe"`
				Archived              bool        `json:"archived"`
				CanGild               bool        `json:"can_gild"`
				HideScore             bool        `json:"hide_score"`
				Spoiler               bool        `json:"spoiler"`
				Permalink             string      `json:"permalink"`
				Locked                bool        `json:"locked"`
				Stickied              bool        `json:"stickied"`
				Created               float64     `json:"created"`
				URL                   string      `json:"url"`
				AuthorFlairText       string      `json:"author_flair_text"`
				Quarantine            bool        `json:"quarantine"`
				Title                 string      `json:"title"`
				CreatedUtc            float64     `json:"created_utc"`
				NumComments           int         `json:"num_comments"`
				IsSelf                bool        `json:"is_self"`
				Visited               bool        `json:"visited"`
				SubredditType         string      `json:"subreddit_type"`
				Ups                   int         `json:"ups"`
			} `json:"data"`
		} `json:"children"`
		After  string      `json:"after"`
		Before interface{} `json:"before"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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