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