Add /addplayer reminder to /importbattlelog

This commit is contained in:
Guangcong Luo
2018-01-29 20:53:01 -06:00
parent ef06ebe555
commit 8f0fc8c4bf

View File

@@ -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|<div class="broadcast broadcast-blue"><strong>This is an imported replay</strong><br />Players will need to be manually added with <code>/addplayer USERNAME, SLOT</code></div>`);
}, 500);
},
/*********************************************************