From: Thorsten Date: Sat, 11 Apr 2020 10:24:20 +0000 (+0200) Subject: change the weights of choice formulations X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=4d6a39d9783a4605549ed23f566e36ee72367ab5;p=urlbot-v3.git change the weights of choice formulations --- diff --git a/distbot/plugins/basic.py b/distbot/plugins/basic.py index 9467ebf..8df04f3 100644 --- a/distbot/plugins/basic.py +++ b/distbot/plugins/basic.py @@ -223,9 +223,10 @@ class Choose(Worker): alternatives = words[1:] logger.debug("Alternatives: %s", str(alternatives)) binary = ( - (('Yes.', 'Yeah!', 'Ok!', 'Aye!', 'Great!'), 4), - (('No.', 'Naah..', 'Meh.', 'Nay.', 'You stupid?'), 4), - (('Maybe.', 'Dunno.', 'I don\'t care.', 'I choose you, Pikachu!', 'Decision tree growing, check back in 20 years'), 2) + (('Yes.', 'Yeah!', 'Ok!', 'Aye!', 'Great!'), 6), + (('No.', 'Naah..', 'Meh.', 'Nay.', 'You stupid?'), 6), + (('Maybe.', 'Dunno.', 'I don\'t care.'), 3), + (('Decision tree growing, check back in 20 years.', "Can't tell right now.", "I need more information."), 1) ) def weighted_choice(choices):