def to_jsonDictionary(self) -> dict: return { "system_id": self.system_id, "system_name": self.name, "security_class": self.security_class, "security_status": self.security_status if self.security_status else 0.0, "star_id": self.star_id, "pos_x": self.pos_x, "pos_y": self.pos_y, "pos_z": self.pos_z, "constellation": self.object_constellation.to_jsonDictionary() if self.object_constellation else None, "urlDotlanMap": self.str_dotlan_map(), "urlZK": URLHelper.zk_system(self.system_id) }
def to_jsonDictionary(self) -> dict: kID = {"killID": self.kill_id} km = { "killmail": { "attackers": [a.to_jsonDictionary() for a in self.object_attackers], "killmail_id": self.kill_id, "killmail_time": str(self.killmail_time), "solar_system_id": self.solar_system_id, "victim": self.object_victim.to_jsonDictionary() if self.object_victim else None, "system": self.object_system.to_jsonDictionary() if self.object_system else None, "location": self.object_location.to_jsonDictionary() if self.object_location else None, "fittedValue": self.fittedValue, "totalValue": self.totalValue, "npc": self.npc, "solo": self.solo, "awox": self.awox, "urlZK": URLHelper.zk_url(self.kill_id) } } zkb = { "zkb": { "locationID": self.locationID, "hash": self.hash, "fittedValue": self.fittedValue, "totalValue": self.totalValue, "points": self.points, "npc": self.npc, "solo": self.solo, "awox": self.awox, "href": self.href } } return {"package": {**kID, **km, **zkb}}
def to_jsonDictionary(self) -> dict: return { "location_id": self.location_id, "location_name": self.name, "pos_x": self.pos_x, "pos_y": self.pos_y, "pos_z": self.pos_z, "radius": self.radius, "type": self.object_type.to_jsonDictionary() if self.object_type else None, "group": self.object_group.to_jsonDictionary() if self.object_group else None, "urlZK": URLHelper.zk_location(self.location_id) }
def to_jsonDictionary(self) -> dict: return { "alliance_id": self.alliance_id, "alliance_name": self.alliance_name, "urlZK": URLHelper.zk_alliance(self.alliance_id) }
def to_jsonDictionary(self) -> dict: return { "corporation_id": self.corporation_id, "corporation_name": self.corporation_name, "urlZK": URLHelper.zk_corporation(self.corporation_id) }
def to_jsonDictionary(self) -> dict: return { "character_id": self.character_id, "character_name": self.character_name, "urlZK": URLHelper.zk_pilot(self.character_id) }
async def get_embed(self, d_message: discord.Message, message_text: str, **kwargs): e = await super().get_embed(d_message, message_text, **kwargs) e.set_thumbnail(url=URLHelper.type_image(24692, 256)) e.set_footer(text="Insight admins can run !admin to update this motd.") return e