try to fetch another server if server is offline in randommc
@@ -64,6 +64,9 @@ class Minecraft(commands.Cog):
jj = await res.json()
if not jj['success'] or not jj['online']:
+ if ctx.command.name == 'randommc':
+ await self.randommc(ctx)
+ return
embed = discord.Embed(color=self.d.cc, title=ctx.l.minecraft.mcping.title_offline.format(self.d.emojis.offline, combined))
await ctx.send(embed=embed)
return
