소스 검색

streamline identify responses

Helge Jung 9 년 전
부모
커밋
c77844e671
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  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')