Add check for missing email

master
Tanner Collin 3 years ago
parent 8f0d2eb417
commit 15d4dd7922
  1. 6
      mosfet/bot.py

@ -272,6 +272,12 @@ def bot(global_state):
elif EMAIL:
print('No password provided, attempting to connect in offline mode...')
g.connection = Connection(SERVER, PORT, username=EMAIL)
elif PASSWORD:
print('')
print('Did you forget to specify an email?')
print('If you want to use your own account:')
print('EMAIL=you@domain.com PASSWORD=supersecret SERVER=minecraft.example.com ./run_linux.sh')
os._exit(0)
else:
print('No username or password provided, using burner minecraft account...')
EMAIL = 'moc.liamg@monortem'[::-1]

Loading…
Cancel
Save