Files: 9d9d5dc6b4e2f64b14f338c2ea2e98e182854207 / steps / username.py
2165 bytesRaw
1 | from steps import clear_screen |
2 | |
3 | def main(details, imported_details): |
4 | ascii_art = """ |
5 | |
6 | ██╗ ██╗███████╗███████╗██████╗ ███╗ ██╗ █████╗ ███╗ ███╗███████╗ |
7 | ██║ ██║██╔════╝██╔════╝██╔══██╗████╗ ██║██╔══██╗████╗ ████║██╔════╝ |
8 | ██║ ██║███████╗█████╗ ██████╔╝██╔██╗ ██║███████║██╔████╔██║█████╗ |
9 | ██║ ██║╚════██║██╔══╝ ██╔══██╗██║╚██╗██║██╔══██║██║╚██╔╝██║██╔══╝ |
10 | ╚██████╔╝███████║███████╗██║ ██║██║ ╚████║██║ ██║██║ ╚═╝ ██║███████╗ |
11 | ╚═════╝ ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ |
12 | |
13 | """ |
14 | clear_screen.main() |
15 | print(ascii_art) |
16 | if imported_details['username']: |
17 | details['username'] = imported_details['username'] |
18 | print("~*~*~*~* Your username is set to {}\n".format(details['username'])) |
19 | else: |
20 | details['username'] = input("What username can they find you under?\n(Note: you can fill this out in 'contact-info.ini' so you don't have to enter it each time.) ") |
21 | if imported_details['public-key']: |
22 | details['public-key'] = imported_details['public-key'] |
23 | print("*~*~*~* Your public key is set to {}\n".format(details['public-key'])) |
24 | keep_going = input("~*~*~*~ Hit any key to continue.") |
25 | else: |
26 | details['public-key'] = input("What is your public key?\n(This can also be set in the 'contact-info.ini')\n> ") |
27 | |
28 | |
29 | if __name__ == "__main__": |
30 | main(details) |
31 |
Built with git-ssb-web