Add short nose support for vertical smiles. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 8f01822013c20c7cdf640b08af52d6a9b68e9dc3
(DIR) parent 90c74446f0fc01e7894dff84cce9418594a0c2bc
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Wed, 1 Jan 2025 08:47:51 +0100
Add short nose support for vertical smiles.
Diffstat:
M smile | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/smile b/smile
@@ -28,6 +28,7 @@ def main(args):
vert_eyes = [":", "8", ";"]
vert_moustache = ["{", "#", "B", "3"]
vert_nose = ["-"]
+ vert_nose1 = ["-", "c", "0", "o"]
vert_mouth = [")", "}", "P", "p", "b", "*", ">", "D", "]", "O", "o"]
vert_tie = ["x", "X"]
vert_body = ["|-<", "|o<", "|O<", "|~<"]
@@ -53,9 +54,13 @@ def main(args):
if random.randrange(1, 10) > 7:
ostr += random.choice(vert_hair)
ostr += random.choice(vert_eyes)
- nose = random.choice(vert_nose)
- for i in range(1, random.randrange(2, 5)):
- ostr += nose
+ noserandrange = random.randrange(2, 5)
+ if noserandrange == 2:
+ ostr += random.choice(vert_nose1)
+ else:
+ nose = random.choice(vert_nose)
+ for i in range(1, noserandrange):
+ ostr += nose
if random.randrange(1, 10) > 8:
ostr += random.choice(vert_moustache)
ostr += random.choice(vert_mouth)