def interval(*args):
 def add_attribute(function):
  if (not hasattr(function, u'interval')):
   function.interval = []
  for arg in args:
   function.interval.append(arg)
  return function
 return add_attribute

def interval ( * args ) : def add_attribute ( function ) : if ( not hasattr ( function , u'interval' ) ) : function . interval = [ ] for arg in args : function . interval . append ( arg ) return function return add_attribute
decorates a function to be called by the bot every x seconds .