28 lines
460 B
Plaintext
28 lines
460 B
Plaintext
|
#!/usr/bin/env python3
|
||
|
|
||
|
import sys, os, json
|
||
|
|
||
|
motd="""
|
||
|
\033c
|
||
|
_
|
||
|
_ _ __ _ _ _(_)____
|
||
|
| | | |/ _` | | | | |_ /
|
||
|
| |_| | (_| | |_| | |/ /
|
||
|
\__,_|\__, |\__,_|_/___|
|
||
|
|_|
|
||
|
uquiz is a simple user based quiz engine
|
||
|
"""
|
||
|
|
||
|
print(motd)
|
||
|
|
||
|
if len(sys.argv) < 2:
|
||
|
print('run with the uquiz file as an arg to start')
|
||
|
sys.exit()
|
||
|
|
||
|
filename=sys.argv[1]
|
||
|
|
||
|
with open(filename, 'r') as file:
|
||
|
data = jason.load(file)
|
||
|
|
||
|
|