Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Commit

Permalink
Fight Command
Browse files Browse the repository at this point in the history
  • Loading branch information
FaisalAbusharar committed Feb 1, 2021
1 parent dd0aa36 commit a50237b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/cogs/fightCog.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from cogs.imports import *
import discord
import asyncio
import math
import random


class Player:
Expand Down Expand Up @@ -66,7 +69,7 @@ async def turn(self, ctx, p1, p2):
async def fight(self, ctx, opponent: discord.Member):
if ctx.channel.id in self.occupied:
await ctx.send("This battlefield is occupied")
return

else:
self.occupied.append(ctx.channel.id)
if opponent == ctx.message.author:
Expand Down

0 comments on commit a50237b

Please sign in to comment.