# Path: Cogs/ReadableTime.py
# def setup(bot):
# def get_years(timeBetween, year, reverse):
# def get_months(timeBetween, year, month, reverse):
# def getReadableTimeBetween(first, last, reverse=False):


import asyncio
import discord
import time
from   operator import itemgetter
from   discord.ext import commands
from   Cogs import ReadableTime


def setup(bot):
	# Add the bot
	bot.add_cog(Uptime(bot))

# This is the Uptime module. It keeps track of how long the bot's been up

class Uptime(commands.Cog):

	# Init with the bot reference, and a reference to the settings var
	def __init__(self, bot):
		self.bot = bot
		self.startTime = int(time.time())

	@commands.command(pass_context=True)
	async def uptime(self, ctx):
		"""Lists the bot's uptime."""
		currentTime = int(time.time())

# Path: Cogs/ReadableTime.py
# def setup(bot):
# def get_years(timeBetween, year, reverse):
# def get_months(timeBetween, year, month, reverse):
# def getReadableTimeBetween(first, last, reverse=False):


# Path: Cogs/Uptime.py
import asyncio
import discord
import time
from   operator import itemgetter
from   discord.ext import commands
from   Cogs import ReadableTime


def setup(bot):
	# Add the bot
	bot.add_cog(Uptime(bot))

# This is the Uptime module. It keeps track of how long the bot's been up

class Uptime(commands.Cog):

	# Init with the bot reference, and a reference to the settings var
	def __init__(self, bot):
		self.bot = bot
		self.startTime = int(time.time())

	@commands.command(pass_context=True)
	async def uptime(self, ctx):
		"""Lists the bot's uptime."""
		currentTime = int(time.time())

		timeString  = ReadableTime.getReadableTimeBetween(self.startTime, currentTime)
