Browse Source

streamline identify responses

Helge Jung 9 years ago
parent
commit
c77844e671
1 changed files with 4 additions and 3 deletions
  1. 4 3
      modules/ffpb_nodeinfo.py

+ 4 - 3
modules/ffpb_nodeinfo.py

@@ -47,11 +47,12 @@ def ffpb_identify(bot, trigger):
         return
 
     if len(result[ident]) == 0:
-        bot.say('Trotz intensivster Recherche habe ich zu "%s" nix gefunden :/' % ident)
+        bot.say('"%s" konnte nicht zugeordnet werden :/' % ident)
     elif len(result[ident]) == 1:
-        bot.say('Glasklar, "%s" wurde identifiziert: %s' % (ident, result[ident][0]))
+        bot.say('"%s" ist eindeutig: %s' % (ident, result[ident][0]))
     else:
-        bot.say('Hm, zu "%s" gibt es mehrere Möglichkeiten: %s' % (ident, str.join(', ', result[ident])))
+        bot.say('"{0}" ist mehrdeutig: {1}'.format(
+                ident, str.join(', ', result[ident])))
 
 
 @willie.module.commands('raw-data')