# Path: dozer/cogs/general.py
# class General(Cog):
#     async def ping(self, ctx):
#     async def base_help(self, ctx, *target):
#     async def _help_all(self, ctx):
#     async def _help_command(self, ctx, command):
#     async def _help_cog(self, ctx, cog):
#     async def _show_help(self, ctx, start_page, title, description, footer, commands, **format_args):
#     async def nick(self, ctx, *, nicktochangeto):
#     async def invite(self, ctx):
#     async def configprefix(self, ctx, prefix: str):
# def setup(bot):


import asyncio
import random
import discord
from asyncio import sleep
from discord.ext.commands import cooldown, BucketType, guild_only, BadArgument, MissingPermissions
from discord_slash import cog_ext, SlashContext
from ._utils import *
from .general import blurple
            "**{opponent}** was told to read the manual by **{attacker}** ",
            "**{opponent}** was told to use windows by **{attacker}**",
            "**{opponent}** was forced to update windows by **{attacker}**",
            "**{opponent}** was E-stopped by **{attacker}** ",
            "**{opponent}** was hit by a snowplow driven by **{attacker}**",
            "**{opponent}** had their api token leaked by **{attacker}**",
            "**{opponent}** had a satellite dropped on them by **{attacker}**",
            "**{opponent}** lost connection to the field courtesy of **{attacker}**",
            "**{opponent}** was knocked off the hab by **{attacker}**",
            "**{opponent}** had the scale dropped on them by **{attacker}**",
            "**{opponent}** had `git rm --force` executed on them by **{attacker}**",
        ]

        damages = [100, 150, 200, 300, 50, 250, 420]
        players = [ctx.author, opponent]
        hps = [1400, 1400]
        turn = random.randint(0, 1)

        messages = []
        while hps[0] > 0 and hps[1] > 0:
            opp_idx = (turn + 1) % 2
            damage = random.choice(damages)
            if players[turn].id in ctx.bot.config['developers'] or players[turn] == ctx.bot.user:
                damage = damage * 2
            hps[opp_idx] = max(hps[opp_idx] - damage, 0)
            messages.append(
                await ctx.send(f"{random.choice(attacks).format(opponent=players[opp_idx].name, attacker=players[turn].name)} *[-{damage} hp]"
                               f" [{hps[opp_idx]} HP remaining]*"))
            await sleep(1.5)
            turn = opp_idx

# Path: dozer/cogs/general.py
# class General(Cog):
#     async def ping(self, ctx):
#     async def base_help(self, ctx, *target):
#     async def _help_all(self, ctx):
#     async def _help_command(self, ctx, command):
#     async def _help_cog(self, ctx, cog):
#     async def _show_help(self, ctx, start_page, title, description, footer, commands, **format_args):
#     async def nick(self, ctx, *, nicktochangeto):
#     async def invite(self, ctx):
#     async def configprefix(self, ctx, prefix: str):
# def setup(bot):


# Path: dozer/cogs/fun.py
import asyncio
import random
import discord
from asyncio import sleep
from discord.ext.commands import cooldown, BucketType, guild_only, BadArgument, MissingPermissions
from discord_slash import cog_ext, SlashContext
from ._utils import *
from .general import blurple

            "**{opponent}** was told to read the manual by **{attacker}** ",
            "**{opponent}** was told to use windows by **{attacker}**",
            "**{opponent}** was forced to update windows by **{attacker}**",
            "**{opponent}** was E-stopped by **{attacker}** ",
            "**{opponent}** was hit by a snowplow driven by **{attacker}**",
            "**{opponent}** had their api token leaked by **{attacker}**",
            "**{opponent}** had a satellite dropped on them by **{attacker}**",
            "**{opponent}** lost connection to the field courtesy of **{attacker}**",
            "**{opponent}** was knocked off the hab by **{attacker}**",
            "**{opponent}** had the scale dropped on them by **{attacker}**",
            "**{opponent}** had `git rm --force` executed on them by **{attacker}**",
        ]

        damages = [100, 150, 200, 300, 50, 250, 420]
        players = [ctx.author, opponent]
        hps = [1400, 1400]
        turn = random.randint(0, 1)

        messages = []
        while hps[0] > 0 and hps[1] > 0:
            opp_idx = (turn + 1) % 2
            damage = random.choice(damages)
            if players[turn].id in ctx.bot.config['developers'] or players[turn] == ctx.bot.user:
                damage = damage * 2
            hps[opp_idx] = max(hps[opp_idx] - damage, 0)
            messages.append(
                await ctx.send(f"{random.choice(attacks).format(opponent=players[opp_idx].name, attacker=players[turn].name)} *[-{damage} hp]"
                               f" [{hps[opp_idx]} HP remaining]*"))
            await sleep(1.5)
            turn = opp_idx

        win_embed = discord.Embed(description=f"{players[turn].mention} lost! GG {players[(turn + 1) % 2].mention}!", color=blurple)