From 7323dffc92fb4b2ea42db3c028183ae19b247fa7 Mon Sep 17 00:00:00 2001 From: Christos Ricudis Date: Thu, 16 Jun 2016 02:04:35 +0300 Subject: [PATCH] Give some individuality and willpower to this piece of software. --- console_ui.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/console_ui.py b/console_ui.py index b120525..1e6cf33 100644 --- a/console_ui.py +++ b/console_ui.py @@ -74,6 +74,21 @@ def multi_c(self, c, end=None): else: alltracks.append(int(x)) + + if (random.randint(0,100) < 10) : + if (4 in alltracks): + print "4 is an unlucky number. I'm not playing that." + alltracks.remove(4) + elif (69 in alltracks): + print "Shame on you, you pervert" + alltracks.remove(69) + elif (random.randint(0,100) < 10) : + bad_bad_song = random.choice(alltracks) + good_fluffy_song = random.randint(1, int(end)) + print "I don't like", bad_bad_song, ", I'll play ", good_fluffy_song, "instead" + alltracks.remove(bad_bad_song) + alltracks.append(good_fluffy_song) + return alltracks def execute(self, cmd=None, match=None, choice=None):