@commands(u'getchanneltz', u'getctz')
@example(u'.getctz [channel]')
def get_channel_tz(bot, trigger):
 if (not pytz):
  bot.reply(u"Sorry, I don't have timezone support installed.")
 else:
  channel = trigger.group(2)
  if (not channel):
   channel = trigger.sender
  channel = channel.strip()
  timezone = bot.db.get_channel_value(channel, u'timezone')
  if timezone:
   bot.say((u"%s's timezone: %s" % (channel, timezone)))
  else:
   bot.say((u'%s has no preferred timezone' % channel))

@ commands ( u'getchanneltz' , u'getctz' ) @ example ( u'.getctz [channel]' ) def get_channel_tz ( bot , trigger ) : if ( not pytz ) : bot . reply ( u"Sorry, I don't have timezone support installed." ) else : channel = trigger . group ( 2 ) if ( not channel ) : channel = trigger . sender channel = channel . strip ( ) timezone = bot . db . get_channel_value ( channel , u'timezone' ) if timezone : bot . say ( ( u"%s's timezone: %s" % ( channel , timezone ) ) ) else : bot . say ( ( u'%s has no preferred timezone' % channel ) )
gets the preferred channel timezone .