def METHOD_NAME(bot, trigger):
    """Queries DuckDuckGo for the specified input."""
    query = trigger.group(2)
    if not query:
        bot.reply('{prefix}{command} what?'.format(
            prefix=bot.settings.core.help_prefix,
            command=trigger.group(1),
        ))
        return
    # If the API gives us something, say it and stop
    result = duck_api(query)
    if result:
        bot.say(result)
        return
    # Otherwise, look it up on the HTML version
    uri = duck_search(query)
    if uri:
        bot.say(uri)
        if 'last_seen_url' in bot.memory:
            bot.memory['last_seen_url'][trigger.sender] = uri
    else:
        msg = "No results found for '%s'." % query
        if query.count('site:') >= 2:
            # This check exists because of issue #1415.
            # The shortcut link will take the user there.
            msg += " Try again with at most one 'site:' operator."
            msg += " See https://sopel.chat/i/1415 for why."
        bot.reply(msg)