@hook.command(autohelp=False)
def showtells(nick, notice, db, conn):
 tells = get_unread(db, conn.name, nick)
 if (not tells):
  notice('You have no pending messages.')
  return
 for tell in tells:
  (sender, message, time_sent) = tell
  past = timeformat.time_since(time_sent)
  notice('{} sent you a message {} ago: {}'.format(sender, past, message))
 read_all_tells(db, conn.name, nick)

@ hook . command ( autohelp = False ) def showtells ( nick , notice , db , conn ) : tells = get_unread ( db , conn . name , nick ) if ( not tells ) : notice ( 'You have no pending messages.' ) return for tell in tells : ( sender , message , time_sent ) = tell past = timeformat . time_since ( time_sent ) notice ( '{} sent you a message {} ago: {}' . format ( sender , past , message ) ) read_all_tells ( db , conn . name , nick )
showtells -- view all pending tell messages .