]> git.aero2k.de Git - urlbot-v3.git/commitdiff
choose your battles
authorThorsten <mail@aero2k.de>
Tue, 23 Apr 2024 18:13:21 +0000 (20:13 +0200)
committerThorsten <mail@aero2k.de>
Tue, 23 Apr 2024 18:13:21 +0000 (20:13 +0200)
src/distbot/plugins/basic.py

index 36c9d1d088bde1c4c292526e5d7bb5d1dbd2bb3e..c84a94db6e36469c5e483cebf44f9fb5126c43a5 100644 (file)
@@ -245,7 +245,8 @@ class Choose(Worker):
         (('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)
+        (('Decision tree growing, check back in 20 years.',
+          "Can't tell right now.", "I need more information.", "Sorry, did you say something?"), 1)
     )
 
     @staticmethod
@@ -294,7 +295,7 @@ class Choose(Worker):
 
         elif 'choose' not in alternatives:
             choice = random.choice(alternatives)
-            return Action(msg='%s: I prefer %s!' % (sender, choice))
+            return Action(msg='{}: I prefer {}!'.format(sender, choice))
 
         def choose_between(options):
             responses = []