Compare commits

...

2 Commits

Author SHA1 Message Date
confestim
eb89cbb240 Merge branch 'main' of dumtaxat-git:/boyan_k/custoMM 2023-05-06 01:35:17 +02:00
confestim
44165c18a5 Post-merge cleanup 2023-05-06 01:35:06 +02:00

View File

@ -157,9 +157,7 @@ async def register(ctx, *args):
name = " ".join(args)
print(name)
league_name = requests.get(f"{URL}/players/{name}").json()
<<<<<<< HEAD
print(league_name)
=======
try:
if not league_name["detail"] == "Not found.":
@ -167,7 +165,6 @@ async def register(ctx, *args):
except KeyError:
if league_name["discord_id"]:
return await ctx.send(f"{league_name['discord']} has claimed this account.")
>>>>>>> 724a78ec70c1093baf80abc93712303e1291cc94
claim_account = requests.post(f"{URL}/players/", data={
"discord": ctx.author.name,