Documentation ¶
Index ¶
- func AdviceCommand(session *disgolf.Bot)
- func AvatarCommand(session *disgolf.Bot)
- func ChadAdvice() string
- func GifsCommand(session *disgolf.Bot)
- func InfoCommand(session *disgolf.Bot)
- func InitializeCommands(session *disgolf.Bot)
- func MusicCommand(session *disgolf.Bot)
- func NormalAdvice() string
- func PresenceInfo(session *disgolf.Bot, ctx *disgolf.Ctx, user *discordgo.User) (string, int)
- func WeatherCommand(session *disgolf.Bot)
- type Music
- type Weather
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdviceCommand ¶
func AvatarCommand ¶
func ChadAdvice ¶
func ChadAdvice() string
func GifsCommand ¶
func InfoCommand ¶
func InitializeCommands ¶
func MusicCommand ¶
func NormalAdvice ¶
func NormalAdvice() string
func PresenceInfo ¶
func WeatherCommand ¶
Types ¶
type Music ¶
type Music struct { Tracks struct { Hits []struct { Track struct { Layout string `json:"layout"` Type string `json:"type"` Key string `json:"key"` Title string `json:"title"` Subtitle string `json:"subtitle"` Share struct { Subject string `json:"subject"` Text string `json:"text"` Href string `json:"href"` Image string `json:"image"` Twitter string `json:"twitter"` HTML string `json:"html"` Avatar string `json:"avatar"` Snapchat string `json:"snapchat"` } `json:"share"` Images struct { Background string `json:"background"` Coverart string `json:"coverart"` Coverarthq string `json:"coverarthq"` Joecolor string `json:"joecolor"` } `json:"images"` Hub struct { Type string `json:"type"` Image string `json:"image"` Actions []struct { Name string `json:"name"` Type string `json:"type"` ID string `json:"id,omitempty"` URI string `json:"uri,omitempty"` } `json:"actions"` Options []struct { Caption string `json:"caption"` Actions []struct { Name string `json:"name"` Type string `json:"type"` URI string `json:"uri"` } `json:"actions"` Beacondata struct { Type string `json:"type"` Providername string `json:"providername"` } `json:"beacondata"` Image string `json:"image"` Type string `json:"type"` Listcaption string `json:"listcaption"` Overflowimage string `json:"overflowimage"` Colouroverflowimage bool `json:"colouroverflowimage"` Providername string `json:"providername"` } `json:"options"` Providers []struct { Caption string `json:"caption"` Images struct { Overflow string `json:"overflow"` Default string `json:"default"` } `json:"images"` Actions []struct { Name string `json:"name"` Type string `json:"type"` URI string `json:"uri"` } `json:"actions"` Type string `json:"type"` } `json:"providers"` Explicit bool `json:"explicit"` Displayname string `json:"displayname"` } `json:"hub"` Artists []struct { ID string `json:"id"` Adamid string `json:"adamid"` } `json:"artists"` URL string `json:"url"` } `json:"track"` Snippet string `json:"snippet,omitempty"` } `json:"hits"` } `json:"tracks"` Artists struct { Hits []struct { Artist struct { Avatar string `json:"avatar"` ID string `json:"id"` Name string `json:"name"` Verified bool `json:"verified"` Weburl string `json:"weburl"` Adamid string `json:"adamid"` } `json:"artist,omitempty"` } `json:"hits"` } `json:"artists"` }
type Weather ¶
type Weather struct { CurrentCondition []struct { FeelsLikeC string `json:"FeelsLikeC"` Cloudcover string `json:"cloudcover,omitempty"` Humidity string `json:"humidity"` LocalObsDateTime string `json:"localObsDateTime"` ObservationTime string `json:"observation_time"` Pressure string `json:"pressure"` TempC string `json:"temp_C"` WeatherDesc []struct { Value string `json:"value,omitempty"` } WindSpeed string `json:"windspeedKmph"` WindDirection string `json:"winddir16Point"` } `json:"current_condition,omitempty"` NearestArea []struct { Country []struct { Value string `json:"value,omitempty"` } `json:"country,omitempty"` } `json:"nearest_area,omitempty"` Weather []struct { Astronomy []struct { MoonIllumination string `json:"moon_illumination,omitempty"` MoonPhase string `json:"moon_phase,omitempty"` Moonrise string `json:"moonrise,omitempty"` Moonset string `json:"moonset,omitempty"` Sunrise string `json:"sunrise,omitempty"` Sunset string `json:"sunset,omitempty"` } `json:"astronomy,omitempty"` AvgTempC string `json:"avgtempC,omitempty"` Date string `json:"date,omitempty"` Hourly []struct { WindGustKmph string `json:"WindGustKmph,omitempty"` } MaxTempC string `json:"maxtempC"` MinTempC string `json:"mintempC"` SunHour string `json:"sunHour,omitempty"` TotalSnowCm string `json:"totalSnow_cm,omitempty"` } `json:"weather,omitempty"` }
Click to show internal directories.
Click to hide internal directories.