Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
h
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskDuck committed Apr 18, 2024
1 parent 435e4aa commit 51e72d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions _orangcbot/extensions/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
# async with session.get(f"https://randommer.io/api/{path}", params=params, headers={"X-Api-Key": _randommer_api_key}) as response:
# return await response.json()
class _BattleInvitation:
def __eq__(self, a, b):
return a.uid1 == b.uid1 and a.uid2 == b.uid2
def __init__(self, uid1, uid2):
self.id = str(uid1) + str(uid2)
self.uid1: int = uid1
self.uid2: int = uid2

Expand Down Expand Up @@ -162,7 +161,7 @@ async def slappy(self, ctx: commands.Context, *, user: nextcord.Member):


def check(m: _BattleInvitation):
return m == inv
return m.id == inv.id
await ctx.bot.wait_for("battle_acceptance", check=check, timeout=60)
k = SlapView(inv, ctx)
end = datetime.datetime.now() + datetime.timedelta(seconds=90)
Expand Down

0 comments on commit 51e72d8

Please sign in to comment.