put image in embed in /mcachieve and /mcsplash
@@ -312,12 +312,16 @@ class Fun(commands.Cog):
@commands.command(name='achievement', aliases=['mcachieve'])
@commands.cooldown(1, 1, commands.BucketType.user)
async def minecraft_achievement(self, ctx, *, text):
- await ctx.send(f'https://api.iapetus11.me/mc/achievement/{urlquote(text[:26])}')
+ embed = discord.Embed(color=self.d.cc)
+ embed.set_image(url=f'https://api.iapetus11.me/mc/achievement/{urlquote(text[:26])}')
+ await ctx.send(embed=embed)
@commands.command(name='splashtext', aliases=['mcsplash', 'splashscreen', 'splash'])
@commands.cooldown(1, 1, commands.BucketType.user)
async def minecraft_splash_screen(self, ctx, *, text):
- await ctx.send(f'https://api.iapetus11.me/mc/splashscreen/{urlquote(text[:27])}')
+ embed = discord.Embed(color=self.d.cc)
+ embed.set_image(url=f'https://api.iapetus11.me/mc/splashscreen/{urlquote(text[:27])}')
+ await ctx.send(embed=embed)
def setup(bot):
