Documentation ¶
Index ¶
Constants ¶
View Source
const USERAGENT = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.85 Safari/537.36"
Variable for http.Client
Variables ¶
View Source
var Prefix string
Global variables
Functions ¶
This section is empty.
Types ¶
type Box ¶
type Box struct { ID int `json:"id"` Name string `json:"name"` Os string `json:"os"` IP string `json:"ip"` AvatarThumb string `json:"avatar_thumb"` Points int `json:"points"` Release string `json:"release"` RetiredDate string `json:"retired_date"` Maker Maker `json:"maker"` Maker2 Maker `json:"maker2"` Rating string `json:"rating"` UserOwns int `json:"user_owns"` RootOwns int `json:"root_owns"` Retired bool `json:"retired"` Free bool `json:"free"` Difficulty []int `json:"difficulty_ratings"` }
type Challenge ¶
type Challenge struct { ID int `json:"id"` Name string `json:"name"` Category string `json:"category"` Difficulty string `json:"difficulty"` Points string `json:"points"` Owns string `json:"owns"` Rates Rate `json:"rates"` Release string `json:"release"` // Status string `json:"status"` Maker string `json:"maker"` Blood string `json:"blood"` Description string `json:"description"` }
type Config ¶
type Config struct { Prefix string `json:"Prefix"` Htb ConfigHtb `json:"HTB"` Discord ConfigDiscord `json:"Discord"` }
Struct for config.json
type ConfigDiscord ¶
type ConfigDiscord struct { Guild string `json:"guild_name"` Token string `json:"bot_token"` GuildID string `json:"guild_id"` Shoutbox string `json:"shoutbox_id"` }
var Discord ConfigDiscord
type ConfigHtb ¶
type ConfigHtb struct { Email string `json:"email"` Password string `json:"password"` ApiToken string `json:"api_token"` }
var Htb ConfigHtb
type Progress ¶
type Progress struct { Username string `json:"user_name"` Users []string `json:"user_owns"` Roots []string `json:"root_owns"` Challs []string `json:"chall_owns"` }
Struct for Progress json file
type Rate ¶
type Rate struct { Pro string `json:"pro"` Sucks string `json:"sucks"` Difficulty string `json:"difficulty"` }
Struct for Challs json file
type User ¶
type User struct { DiscordID int `json:"discord_id"` UserID int `json:"user_id"` VIP bool `json:"vip"` Username string `json:"user_name"` Avatar string `json:"avatar"` Points string `json:"points"` Systems string `json:"systems"` Users string `json:"users"` Respect string `json:"respect"` Country string `json:"country"` Team string `json:"team"` Level string `json:"level"` Rank string `json:"rank"` Challs string `json:"challs"` Ownership string `json:"ownership"` Prolabs map[string]string `json:"prolabs"` }
Struct for Users json file
Click to show internal directories.
Click to hide internal directories.