-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboop_generator.py
68 lines (61 loc) · 1.29 KB
/
boop_generator.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
56
57
58
59
60
61
62
63
64
65
66
67
68
import random
import logging
logger = logging.getLogger(__name__)
def get_boop():
"""
Constructs robot boop noise.
Returns:
string: beep-boop
"""
beeps = [
'Beep',
'Bleep',
'Whhirrrrr',
'Ba-Da',
'WooOOt',
'Beedely',
'Boop-Ba',
'Tick',
'Ping',
'Boop',
'Cheep',
'Tweep',
]
boops = [
'Boop',
'Bloo-Bloo',
'Bloo',
'Bloop',
'Ding',
'Beep',
'Bleep',
'Doop',
'Bing',
'Tock',
'Bonk',
'Tick',
'Chirp',
'Twirp',
]
woops = [
'WhaaaaooOOOoo',
'*Lighter-Thumbs-Up*',
'ZzzzzzaaaAP',
'*Happy-Whistle*',
'*Sad-Tweep*',
'*Sarcastic-Chirping*',
'*Squidily-Squeak*',
'Roger-Roger',
]
if random.randrange(11) >= 10:
boop = random.choice(woops)
elif random.randrange(111) >= 110:
logger.warning('\n\nKILL-ALL-HUMANS!!!!!!!!!!!!!!!!!!!\n\n')
boop = "KILL-ALL-HUMANS err... Beep"
else:
boop = random.choice(beeps) + '-' + random.choice(boops)
logger.info('Choosen boop: %s', boop)
return boop
if __name__ == '__main__':
for i in xrange(15):
print get_boop()