import discord, asyncio, datetime
from discord.ext import commands
from cogs.utils.checks import *

class alt:
    active = False
    def __init__(self, bot):
        self.bot = bot

    async def on_message(self, message):
        if not self.active: return
        if not message.channel.type == discord.ChannelType.private: return
        if message.lower() == "!status":
            await self.bot.send_message(message.channel, self.bot.bot_prefix + 'You are currently: `%s`' % message.author)

    @commands.command(aliases=['alt'], pass_context=True)
    async def alttest(self, ctx):
        """Toggles ALT Tester."""
        self.active = not self.active
        await self.bot.send_message(ctx.message.channel, self.bot.bot_prefix + 'ALT Tester set to: `%s`' % self.active)

def setup(bot):
    bot.add_cog(alt(bot))
