浏览代码

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')