Add check for missing email

This commit is contained in:
Tanner Collin 2021-05-02 01:40:15 +00:00
parent 8f0d2eb417
commit 15d4dd7922

View File

@ -272,6 +272,12 @@ def bot(global_state):
elif EMAIL: elif EMAIL:
print('No password provided, attempting to connect in offline mode...') print('No password provided, attempting to connect in offline mode...')
g.connection = Connection(SERVER, PORT, username=EMAIL) 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: else:
print('No username or password provided, using burner minecraft account...') print('No username or password provided, using burner minecraft account...')
EMAIL = 'moc.liamg@monortem'[::-1] EMAIL = 'moc.liamg@monortem'[::-1]