From 8f0fc8c4bf91096e95f23946cb0bfbed4e596f8f Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Mon, 29 Jan 2018 20:53:01 -0600 Subject: [PATCH] Add /addplayer reminder to /importbattlelog --- chat-commands.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chat-commands.js b/chat-commands.js index 8b3f19d369..6b215f8cbd 100644 --- a/chat-commands.js +++ b/chat-commands.js @@ -3454,6 +3454,10 @@ exports.commands = { const battleRoom = Rooms.createBattle(formatid, {inputLog: target}); this.parse(`/join ${battleRoom.id}`); battleRoom.auth[user.userid] = Users.PLAYER_SYMBOL; + setTimeout(() => { + // timer to make sure this goes under the battle + battleRoom.add(`|html|
This is an imported replay
Players will need to be manually added with /addplayer USERNAME, SLOT
`); + }, 500); }, /*********************************************************