@commands(u'getchanneltimeformat', u'getctf')
@example(u'.getctf [channel]')
def get_channel_format(bot, trigger):
 channel = trigger.group(2)
 if (not channel):
  channel = trigger.sender
 channel = channel.strip()
 tformat = bot.db.get_channel_value(channel, u'time_format')
 if tformat:
  bot.say((u"%s's time format: %s" % (channel, tformat)))
 else:
  bot.say((u'%s has no preferred time format' % channel))

@ commands ( u'getchanneltimeformat' , u'getctf' ) @ example ( u'.getctf [channel]' ) def get_channel_format ( bot , trigger ) : channel = trigger . group ( 2 ) if ( not channel ) : channel = trigger . sender channel = channel . strip ( ) tformat = bot . db . get_channel_value ( channel , u'time_format' ) if tformat : bot . say ( ( u"%s's time format: %s" % ( channel , tformat ) ) ) else : bot . say ( ( u'%s has no preferred time format' % channel ) )
gets the channels preferred time format .