Skip to content

Commit

Permalink
strip references to the email reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ihaywood3 committed Mar 15, 2018
1 parent 5becb2a commit a540f0b
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions dexbot/cli_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,30 +152,6 @@ def configure_bot(d, bot):
d.alert("This bot type does not have configuration information. You will have to check the bot code and add configuration values to config.yml if required")
return bot

def setup_reporter(d, config):
reporter_config = config.get('reports',{})
frequency = d.radiolist("DEXBot can send an e-mail report on its activities at regular intervals", select_choice(
str(reporter_config.get('days',0)),
[("0",'Never'), ('1','Daily'), ('2','Second-daily'), ('3','Third-daily'), ('7','Weekly')]))
if frequency == '0':
if 'reporter' in config:
del config['reporter']
return
reporter_config['days'] = int(frequency)
reporter_config['send_to'] = d.prompt("E-mail address to send to",default=reporter_config.get('send_to',''))
reporter_config['send_from'] = d.prompt("E-mail address to send from (blank will use local user and host name)",
default=reporter_config.get('send_from',reporter_config['send_to']))
reporter_config['server'] = d.prompt("SMTP server to use (blank means this server)",
default=reporter_config.get('server',''))
reporter_config['port'] = d.prompt("SMTP server port to use",
default=reporter_config.get('port','25'))
reporter_config['login'] = d.prompt("Login username for the SMTP server (blank means don't login)",
default=reporter_config.get('login',
reporter_config['send_to'].split('@')[0]))
if reporter_config['login']:
reporter_config['password'] = d.prompt("SMTP server password to use",password=True)
config['reports'] = reporter_config

def configure_dexbot(config):
d = get_whiptail()
bots = config.get('bots', {})
Expand All @@ -186,7 +162,6 @@ def configure_dexbot(config):
config['bots'] = {txt: configure_bot(d, {})}
if not d.confirm("Set up another bot?\n(DEXBOt can run multiple bots in one instance)"):
break
setup_reporter(d, config)
setup_systemd(d, config)
node = best_node(ping_results)
if node:
Expand All @@ -211,7 +186,6 @@ def configure_dexbot(config):
txt = d.prompt("Your name for the new bot")
config['bots'][txt] = configure_bot(d, {})
else:
setup_reporter(d, config)
config['node'] = d.prompt("BitShares node to use",default=config['node'])
d.clear()
return config
Expand Down

0 comments on commit a540f0b

Please sign in to comment.