-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgenerate.py
55 lines (46 loc) · 1.26 KB
/
generate.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import time
import random
import atexit
import json
def a_last_good_bye():
print('Adios my friend !')
exit(0)
atexit.register(a_last_good_bye)
dragon_names = [
'Xaymmynth, Champion Of The Blue',
'Chynnyrth, Champion Of Men',
'Orro, The Clean',
'Xarsot, The Tyrant',
'Gara, The Magnificent',
'Jyrgieg, The Swift',
'Urri, The Life Giver',
'Qandocruss, Champion Of The White',
'Xedroneg, Champion Of The Red',
'Devorrat, The Champion',
'Vugeo, The Youngling',
'Gazzess, The Tender',
'Talrayd, The Hungry',
'Teiraes, The Dark One',
'Freta, The Evil One',
'Ievio, Bringer Of Death',
'Gairvol, The Puny',
'Saymmiarroith, The Youngling',
'Ceogurrayss, The Mysterious One',
'Zyvrieliar, The Swift',
'Zaellyt, The Gifted One',
'Xughus, The Tall',
'Frarvurth, The Voiceless',
'Yndray, Lord Of The Yellow',
'Xaerlulth, The Warm',
'Cedhayd, Champion Of Dragons',
'Frurunth, Firebreath',
'Siovaeloi, Protector Of The Weak',
'Gorsolun, Warmheart',
'Poarluntaynth, The Voiceless One',
]
def main():
while True:
print(json.dumps({'name': dragon_names[random.randint(0, len(dragon_names) - 1)]}))
time.sleep(1)
if __name__ == '__main__':
main()