-conversation = (
- (b"Identify yourself:", b"testuser"),
- (b"Enter your choice:", b"n"),
- (b"Enter a new password for \"testuser\":", b"Test123"),
- (b"Enter the same new password again:", b"Test123"),
- (b"What would you like to do?", b"c"),
- (b"Pick a gender for your new avatar:", b"f"),
- (b"Choose a name for her:", b"1"),
- (b"What would you like to do?", b"a"),
- (b"Whom would you like to awaken?", b""),
- (b">", b"quit"),
- (b"What would you like to do?", b"d"),
- (b"Whom would you like to delete?", b""),
- (b"What would you like to do?", b"p"),
- (b"permanently delete your account?", b"y"),
- (b"Disconnecting...", b""),
+import sys
+import telnetlib
+
+dialogue = (
+ # Create account 0
+ (0, "Identify yourself:", "luser0"),
+ (0, "Enter your choice:", "n"),
+ (0, "Enter a new password for \"luser0\":", "Test123"),
+ (0, "Enter the same new password again:", "Test123"),
+ (0, "What would you like to do\?", "c"),
+ (0, "Pick a birth gender for your new avatar:", "f"),
+ (0, "Choose a name for her:", "1"),
+ (0, "What would you like to do?", "a"),
+ (0, "Whom would you like to awaken?", ""),
+
+ # Quit
+ (0, "> ", "quit"),
+
+ # Delete account 0
+ (0, "What would you like to do?", "d"),
+ (0, "Whom would you like to delete?", ""),
+ (0, "What would you like to do?", "p"),
+ (0, "permanently delete your account?", "y"),
+ (0, "Disconnecting...", ""),