From b026a6e37c608d15909ea933b3ad9fec291ee8df Mon Sep 17 00:00:00 2001 From: Andy Pilate Date: Tue, 11 Aug 2015 14:57:03 +0200 Subject: [PATCH] Added Hek as a default trading hub --- README.md | 2 +- dropbot/bot.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e24c454..3839187 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ The configuration is passed by using environment variables. * ```DROPBOT_REDIS_URL``` - 12 factor style URL of the Redis server to use (defaults to redis://localhost:6379/0) * ```DROPBOT_CMD_PREFIX``` - Prefix of MUC channel commands (defaults to !) * ```DROPBOT_KOS_URL``` - URL of the CVA KOS API service (defaults to http://kos.cva-eve.org/api/) -* ```DROPBOT_MARKET_SYSTEMS``` - A comma seperated list of systems to be used for the best price checker (defaults to Jita, Amarr, Rens, Dodixie) +* ```DROPBOT_MARKET_SYSTEMS``` - A comma seperated list of systems to be used for the best price checker (defaults to Jita, Amarr, Rens, Dodixie, Hek) * ```DROPBOT_KILL_CORPS``` - List of Corp IDs to track for kills * ```DROPBOT_KILLS_DISABLED``` - Disables the streaming of zKillboard kills to the channels (default to 0) * ```DROPBOT_OFFICE_API_KEYID``` - API KeyID to use for the nearest office finder. diff --git a/dropbot/bot.py b/dropbot/bot.py index b2d8f69..51a4e06 100644 --- a/dropbot/bot.py +++ b/dropbot/bot.py @@ -40,7 +40,7 @@ class DropBot(ClientXMPP): self.kills_muted = False self.office_api_key_keyid = kwargs.pop('office_api_keyid', None) self.office_api_key_vcode = kwargs.pop('office_api_vcode', None) - self.market_systems = kwargs.pop('market_systems', ['Jita', 'Amarr', 'Rens', 'Dodixie']) + self.market_systems = kwargs.pop('market_systems', ['Jita', 'Amarr', 'Rens', 'Dodixie', 'Hek']) if 'redis_url' in kwargs: self.redis_pool = ConnectionPool.from_url(kwargs.pop('redis_url', 'redis://localhost:6379/0')) @@ -345,8 +345,12 @@ class DropBot(ClientXMPP): return self.cmd_price(['Rens'] + args, msg) def cmd_dodixie(self, args, msg): - """Returns the price of a item in Dodixie""" + """Returns the price of a item in Dodixie""" return self.cmd_price(['Dodixie'] + args, msg) + + def cmd_hek(self, args, msg): + """Returns the price of a item in Hek""" + return self.cmd_price(['Hek'] + args, msg) def cmd_uh(self, args, msg): """Returns the price of a item in U-HVIX"""