fifth

package
v0.0.0-...-f66dc53 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Debug Debug mode enabled

Eve ESI Client

Session Discord client session

Functions

func ListenZKill

func ListenZKill()

ListenZKill Start live zKill feed

func SendDebugMsg

func SendDebugMsg(msg string) (*discordgo.Message, error)

SendDebugMsg Send message to the debug channel

func SendImportantMsg

func SendImportantMsg(msg string) (*discordgo.Message, error)

SendImportantMsg Send message to the default priority channel

func SendMsg

func SendMsg(msg string) (*discordgo.Message, error)

SendMsg Send a message to the default channel

func SendMsgToChan

func SendMsgToChan(chann string, msg string) (*discordgo.Message, error)

SendMsgToChan Send message to given channel

Types

type Attacker

type Attacker struct {
	Character
	DamageDone     int     `json:"damage_done"`
	FinalBlow      bool    `json:"final_blow"`
	SecurityStatus float64 `json:"security_status"`
	WeaponTypeID   int     `json:"weapon_type_id"`
}

Attacker Aggressor on a killmail

type Character

type Character struct {
	AllianceID     int32 `json:"alliance_id,omitempty"`
	AllianceName   string
	AllianceTicker string

	CorporationID     int32 `json:"corporation_id,omitempty"`
	CorporationName   string
	CorporationTicker string

	CharacterID   int32 `json:"character_id,omitempty"`
	CharacterName string

	ShipTypeID   int32 `json:"ship_type_id,omitempty"`
	ShipTypeName string
}

Character EVE Online character on a killmail

type EveWhoCharacter

type EveWhoCharacter struct {
	CharacterID int    `json:"character_id"`
	Name        string `json:"name"`
}

type EveWhoCorpLookup

type EveWhoCorpLookup struct {
	Info []struct {
		CorporationID int    `json:"corporation_id"`
		Name          string `json:"name"`
		MemberCount   int    `json:"memberCount"`
	} `json:"info"`
	Characters []EveWhoCharacter `json:"characters"`
}

type Fifth

type Fifth struct{}

Fifth Discord Bot Main Struct

func (*Fifth) AddTimer

func (f *Fifth) AddTimer(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

AddTimer Bot command to add a timer to the timer board

func (*Fifth) AddZKillTracked

func (f *Fifth) AddZKillTracked(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

func (*Fifth) EmoteTest

func (f *Fifth) EmoteTest(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

EmoteTest Bot command to test emote reacting

func (*Fifth) EveTime

func (f *Fifth) EveTime(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

EveTime bot command to give current EVE time, or time until given EVE time

func (*Fifth) GetCurrentTheraHoles

func (f *Fifth) GetCurrentTheraHoles(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

GetCurrentTheraHoles Bot command to list currently active thera holes, with optional ranges to a target system

func (*Fifth) ListTimers

func (f *Fifth) ListTimers(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

ListTimers bot command to return a list of current timers

func (*Fifth) ListZKillTracked

func (f *Fifth) ListZKillTracked(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

func (*Fifth) Range

func (f *Fifth) Range(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

Range Bot command to give dotlan links with the jump ranges fro ma given system

func (*Fifth) RemoveTimer

func (f *Fifth) RemoveTimer(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

RemoveTimer bot command to remove a timer from the timer board

func (*Fifth) ScrapeCorpSupers

func (f *Fifth) ScrapeCorpSupers(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

func (*Fifth) SearchCapitalContracts

func (f *Fifth) SearchCapitalContracts(ds *discordgo.Session, dm *discordgo.Message, muxCtx *mux.Context)

SearchCapitalContracts Bot command to fetch super-capital contracts

func (*Fifth) Servers

func (f *Fifth) Servers(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

Servers Bot command to list currently connected servers

func (*Fifth) SetStatus

func (f *Fifth) SetStatus(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

SetStatus Bot command to set the 'currently playing' status of the bot

func (*Fifth) Status

func (f *Fifth) Status(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

Status Bot command to get EVE Online server status

func (*Fifth) Who

func (f *Fifth) Who(ds *discordgo.Session, dm *discordgo.Message, ctx *mux.Context)

Who Bot command to give information about a given character

type Kill

type Kill struct {
	Attackers            []Attacker `json:"attackers"`
	InterestingAttackers []Attacker
	KillmailID           int32     `json:"killmail_id"`
	KillmailTime         time.Time `json:"killmail_time"`
	SolarSystemID        int32     `json:"solar_system_id"`
	SolarSystemName      string
	RegionID             int32
	RegionName           string
	Victim               Victim `json:"victim"`
	Zkb                  struct {
		LocationID  int     `json:"locationID"`
		Hash        string  `json:"hash"`
		FittedValue float64 `json:"fittedValue"`
		TotalValue  float64 `json:"totalValue"`
		Points      int     `json:"points"`
		Npc         bool    `json:"npc"`
		Solo        bool    `json:"solo"`
		Awox        bool    `json:"awox"`
		// contains filtered or unexported fields
	} `json:"zkb"`
	// contains filtered or unexported fields
}

Kill Killmail

type TrackedEntity

type TrackedEntity struct {
	// contains filtered or unexported fields
}

type Victim

type Victim struct {
	Character
	DamageTaken int `json:"damage_taken"`
	Items       []struct {
		Flag              int `json:"flag"`
		ItemTypeID        int `json:"item_type_id"`
		QuantityDropped   int `json:"quantity_dropped,omitempty"`
		Singleton         int `json:"singleton"`
		QuantityDestroyed int `json:"quantity_destroyed,omitempty"`
		Items             []struct {
			Flag              int `json:"flag"`
			ItemTypeID        int `json:"item_type_id"`
			QuantityDestroyed int `json:"quantity_destroyed"`
			Singleton         int `json:"singleton"`
		} `json:"items,omitempty"`
	} `json:"items"`
	Position struct {
		X float64 `json:"x"`
		Y float64 `json:"y"`
		Z float64 `json:"z"`
	} `json:"position"`
}

Victim Thing destroyed in a killmaill

Jump to

Keyboard shortcuts

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