MikaLendingBot icon indicating copy to clipboard operation
MikaLendingBot copied to clipboard

[Feature] Multiple Account Support ?

Open besoeasy opened this issue 8 years ago • 4 comments

hey developer, i was hoping it would be nice to implement a multiple account configs, maybe like arrays

besoeasy avatar Dec 03 '17 19:12 besoeasy

Currently (and probably the case for the foreseeable future) you need to run multiple instances of the bot.

You can tell it to use a different config file on command line with the -cfg option

laxdog avatar Dec 14 '17 17:12 laxdog

hey it will be best if you we like a json file to have multi accounts listed

besoeasy avatar Dec 19 '17 15:12 besoeasy

Hi , it's not a problem to use two or more configs but output to telegram (and console ) just to duplicate another previous output for another account - smth like that :

account 1 output(only USD): 0.00008437 BTC Today 0.00077782 ETH Today 2.31790761 USD Today 0.00008013 BTC Yesterday 0.00103446 ETH Yesterday


Acount 2 output (Only BTC/ETH): 0.00008437 BTC Today 0.00077782 ETH Today 0.00008013 BTC Yesterday 0.00103446 ETH Yesterday

kexroman avatar Jun 01 '18 09:06 kexroman

This could be achieved by passing the label in the config file embedded in the message body, and then just running multiple instances of the bot with different config files. Maybe something like this: def send_notification(_msg, notify_conf): label = Config.get("BOT", "label") nc = notify_conf msg = label + "::" + _msg if ('notify_prefix' not in nc) else "{} {}".format(nc['notify_prefix'], _msg) ...

FlPCrZ avatar Oct 16 '19 09:10 FlPCrZ