diff --git a/lib/commands/admin/get-lobby.js b/lib/commands/admin/get-lobby.js index 9ac5d48..5487cc2 100644 --- a/lib/commands/admin/get-lobby.js +++ b/lib/commands/admin/get-lobby.js @@ -9,7 +9,7 @@ module.exports = new Clapp.Command({ desc: "Gets the current lobby name and password sent to you on a DM", fn: (argv, context) => { return new Promise((fulfill, reject) => { - db.events.get(argv.args.event).then(event => { + db.get(argv.args.event).then(event => { if (event === null) { fulfill("Error: the specified event `" + argv.args.event + "` doesn't exist."); } else { diff --git a/lib/modules/dotahandler/DotaClientX.js b/lib/modules/dotahandler/DotaClientX.js index d97dda7..562509e 100644 --- a/lib/modules/dotahandler/DotaClientX.js +++ b/lib/modules/dotahandler/DotaClientX.js @@ -177,7 +177,7 @@ class DotaClientX extends Dota2.Dota2Client { "game_name": this.currentLobby.name, "server_region": server, "game_mode": gamemode, - "game_version": EGameVersion.GAME_VERSION_STABLE, + "game_version": EGameVersion.GAME_VERSION_CURRENT, "series_type": ESeriesType.NONE, "cm_pick": cmpick, "allow_cheats": false, @@ -191,7 +191,7 @@ class DotaClientX extends Dota2.Dota2Client { }; if (cfg.dota.ticketing.enabled) { - options.leaguid = cfg.dota.ticketing.league_id; + options.leagueid = cfg.dota.ticketing.league_id; } this.createPracticeLobby( diff --git a/lib/modules/dotahandler/index.js b/lib/modules/dotahandler/index.js index e35b4e1..6a4fdae 100644 --- a/lib/modules/dotahandler/index.js +++ b/lib/modules/dotahandler/index.js @@ -134,7 +134,7 @@ class DotaHandler { if (client.inLobby()) { return { name: client.currentLobby.name, - password: client.currentLobby.name + password: client.currentLobby.password }; } else { return null; diff --git a/package.json b/package.json index e92b5e7..5fb06d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "schedulebot", - "version": "1.2.0", + "version": "1.2.1", "description": "A Discord bot that makes scheduling easy", "homepage": "https://github.com/mellamopablo/schedulebot#readme", "author": "Pablo Rodríguez (https://github.com/MeLlamoPablo)", diff --git a/scripts/shared/versions.json b/scripts/shared/versions.json index 291c99f..99d89d8 100644 --- a/scripts/shared/versions.json +++ b/scripts/shared/versions.json @@ -1,4 +1,5 @@ [ + "v1.2.1-dota", "v1.2.0-dota", "v1.1.1-dota", "v1.1.0-dota", diff --git a/scripts/sql/1.2.0-to-1.2.1.sql b/scripts/sql/1.2.0-to-1.2.1.sql new file mode 100644 index 0000000..5b1243d --- /dev/null +++ b/scripts/sql/1.2.0-to-1.2.1.sql @@ -0,0 +1 @@ +--noop \ No newline at end of file