It uses fuzzysearch for the image search, fuzzysearch source here. From previous comments from @wander, the bot verifies the artist by e6, if no artist is listed or not posted to e6, the bot amends the message to indicate the link might be the commissioner.