update rcon command to use new dm requesting system if necessary
@@ -457,7 +457,10 @@ class Minecraft(commands.Cog):
return
try:
- port_msg = await self.bot.wait_for("message", check=dm_check, timeout=60)
+ if 0 in self.bot.shard_ids:
+ port_msg = await self.bot.wait_for("message", check=dm_check(ctx), timeout=60)
+ else:
+ port_msg = await self.ipc.request({"type": "dm-message-request", "user": ctx.author.id})
except asyncio.TimeoutError:
try:
await self.bot.send_embed(ctx.author, ctx.l.minecraft.rcon.msg_timeout)
