From 15d4dd792273078504ba71cc51935ff116fb9884 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 2 May 2021 01:40:15 +0000 Subject: [PATCH] Add check for missing email --- mosfet/bot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mosfet/bot.py b/mosfet/bot.py index a15d46c..885d1bf 100644 --- a/mosfet/bot.py +++ b/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]