def list_tasks
      tasks = $bot[:tasks].map do |name, value|
        [name, value[:desc]]
      end.to_h
      longest_name = tasks.keys.map(&:to_s).max { |a, b| a.length <=> b.length }.length
      tasks = tasks.map do |name, desc|
        "twittbot cron %-*s # %s" % [longest_name + 2, name, desc]
      end.sort

      puts tasks
    end
def list_tasks
      tasks = $bot[:tasks].map do |name, value|
        [name, value[:desc]]
      end.to_h
      longest_name = tasks.keys.map(&:to_s).max { |a, b| a.length <=> b.length }.length
      tasks = tasks.map do |name, desc|
        "twittbot cron %-*s # %s" % [longest_name + 2, name, desc]
      end.sort

      puts tasks
    end
Lists all tasks