|
|
|
@ -349,7 +349,7 @@ class Fun(Cog):
|
|
|
|
|
url = "https://apis.duncte123.me/kpop"
|
|
|
|
|
async with aiohttp.ClientSession() as session:
|
|
|
|
|
async with await session.get(url=url) as response:
|
|
|
|
|
# When succesful, read data from json
|
|
|
|
|
# When successful, read data from json
|
|
|
|
|
if response.status == 200:
|
|
|
|
|
kpop = await response.json()
|
|
|
|
|
|
|
|
|
@ -367,8 +367,6 @@ class Fun(Cog):
|
|
|
|
|
desc="**You are being rate limited! You have spammed it too much :(**")
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
await session.close()
|
|
|
|
|
|
|
|
|
|
embed = Embed(title=name,
|
|
|
|
|
description=band,
|
|
|
|
|
colour=self.bot.random_colour(),
|
|
|
|
@ -421,8 +419,6 @@ class Fun(Cog):
|
|
|
|
|
desc="**You are being rate limited! You have spammed it too much :(**")
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
await session.close()
|
|
|
|
|
|
|
|
|
|
# Setting bools to ticks/cross emojis
|
|
|
|
|
verif = self.bot.tick if verified else self.bot.cross
|
|
|
|
|
priv = self.bot.tick if private else self.bot.cross
|
|
|
|
|