stuff oh boy am I in a lazy mood
@@ -34,7 +34,7 @@ class Minecraft(commands.Cog):
combined = f'{host}{port_str}'
async with ctx.typing():
- async with self.ses.get(f'https://betterapi.net:6400/mc/mcping?host={combined}') as res: # fetch status from api
+ async with self.ses.get(f'https://betterapi.net:6400/mc/mcping?host={combined}&k={self.d.k}') as res: # fetch status from api
jj = await res.json()
if not jj['success'] or not jj['online']:
@@ -73,10 +73,10 @@ class Minecraft(commands.Cog):
inline=False
)
- embed.set_image(url=f'https://betterapi.net:6400/mc/mcpingimg?host={combined}&imgonly=true&v={random.random()*100000}')
+ embed.set_image(url=f'https://betterapi.net:6400/mc/mcpingimg?host={combined}&imgonly=true&v={random.random()*100000}&k={self.d.k}')
if jj['favicon'] is not None:
- embed.set_thumbnail(url=f'https://betterapi.net:6400/mc/serverfavi?host={combined}')
+ embed.set_thumbnail(url=f'https://betterapi.net:6400/mc/serverfavi?host={combined}&k={self.d.k}')
if ctx.command.name == 'randommc':
if note is not None:
