@commands(u'gettimeformat', u'gettf')
@example(u'.gettf [nick]')
def get_user_format(bot, trigger):
 nick = trigger.group(2)
 if (not nick):
  nick = trigger.nick
 nick = nick.strip()
 format = bot.db.get_nick_value(nick, u'time_format')
 if format:
  bot.say((u"%s's time format: %s." % (nick, format)))
 else:
  bot.say((u"%s hasn't set a custom time format" % nick))

@ commands ( u'gettimeformat' , u'gettf' ) @ example ( u'.gettf [nick]' ) def get_user_format ( bot , trigger ) : nick = trigger . group ( 2 ) if ( not nick ) : nick = trigger . nick nick = nick . strip ( ) format = bot . db . get_nick_value ( nick , u'time_format' ) if format : bot . say ( ( u"%s's time format: %s." % ( nick , format ) ) ) else : bot . say ( ( u"%s hasn't set a custom time format" % nick ) )
gets a users preferred time format .