Skip to content

Commit

Permalink
fix(startup): Clean up all SHAPED_VERSION_TESTER characters
Browse files Browse the repository at this point in the history
  • Loading branch information
symposion committed Feb 26, 2017
1 parent e2a1e3c commit f7b6d39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/entry-point.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const Migrator = require('./migrations');
const EventDispatcher = require('./event-dispatcher');
const ChatWatcher = require('./chat-watcher');
const utils = require('./utils');
const _ = require('underscore');


const roll20 = new Roll20();
Expand Down Expand Up @@ -68,7 +69,7 @@ roll20.on('ready', () => {
roll20.createAttrWithWorker(character.id, 'sheet_opened', 1, () => {
const version = roll20.getAttrByName(character.id, 'version');
setTimeout(() => {
character.remove();
_.invoke(roll20.findObjs({ type: 'character', name: 'SHAPED_VERSION_TESTER' }), 'remove');
}, 1000);
logger.info('Detected sheet version as : $$$', version);
if (utils.versionCompare(version, MINIMUM_SHEET_VERSION) < 0) {
Expand Down

0 comments on commit f7b6d39

Please sign in to comment.