@commands(u'title')
@example(u'.title http://google.com', u'[ Google ] - google.com')
def title_command(bot, trigger):
 if (not trigger.group(2)):
  if (trigger.sender not in bot.memory[u'last_seen_url']):
   return
  matched = check_callbacks(bot, trigger, bot.memory[u'last_seen_url'][trigger.sender], True)
  if matched:
   return
  else:
   urls = [bot.memory[u'last_seen_url'][trigger.sender]]
 else:
  urls = re.findall(url_finder, trigger)
 results = process_urls(bot, trigger, urls)
 for (title, domain) in results[:4]:
  bot.reply((u'[ %s ] - %s' % (title, domain)))

@ commands ( u'title' ) @ example ( u'.title http://google.com' , u'[ Google ] - google.com' ) def title_command ( bot , trigger ) : if ( not trigger . group ( 2 ) ) : if ( trigger . sender not in bot . memory [ u'last_seen_url' ] ) : return matched = check_callbacks ( bot , trigger , bot . memory [ u'last_seen_url' ] [ trigger . sender ] , True ) if matched : return else : urls = [ bot . memory [ u'last_seen_url' ] [ trigger . sender ] ] else : urls = re . findall ( url_finder , trigger ) results = process_urls ( bot , trigger , urls ) for ( title , domain ) in results [ : 4 ] : bot . reply ( ( u'[ %s ] - %s' % ( title , domain ) ) )
show the title or url information for the given url .