Skip to content
Snippets Groups Projects
Commit c77844e6 authored by Helge Jung's avatar Helge Jung
Browse files

streamline identify responses

parent 273e8a4d
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment