Skip to content

Commit

Permalink
Seems to work now
Browse files Browse the repository at this point in the history
  • Loading branch information
MeLlamoPablo committed Jan 12, 2017
1 parent e864b89 commit 5594b93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/commands/admin/remove-event.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = new Clapp.Command({
let eventName = event.name;
let deleteSummaryPromise = context.summaryHandler.deleteSummary(event);
let deleteEventPromise = event.deleteEvent();
// TODO this needs updating!
let closeLobbyPromise = new Promise((fulfill, reject) => {
// If the event has an active lobby, close it
if (
Expand Down
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,3 +321,5 @@ Promise.all(startupPromises).then(values => {
console.error(err);
process.exit(1);
});

// TODO add status admin command?
6 changes: 5 additions & 1 deletion lib/modules/dotahandler/DotaClientX.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ class DotaClientX extends Dota2.Dota2Client {
// TODO this is giving error 2 on lobby creation
reject(new Error("[DOTA] Error creating lobby - Error code: " + err
+ "\nList of error codes: https://github.com/Arcana/node-dota2/blob/86f02" +
"0e01dba86af3ec02323a8325243b8d9d0c2/handlers/helper.js#L5"));
"0e01dba86af3ec02323a8325243b8d9d0c2/handlers/helper.js#L5\n\n" +

"If you're getting error 2, make sure that your Steam account's " +
"email is verified, and launch dota from your bot's account, then" +
"manually create a lobby."));
}
}
);
Expand Down

0 comments on commit 5594b93

Please sign in to comment.