-
Notifications
You must be signed in to change notification settings - Fork 6
Core Module: dota2.js
Michael Barrett edited this page Jun 1, 2018
·
11 revisions
const dota2 = require('../../core/dota2.js');
dota2.launch();The good stuff. This module gives access to Dota 2 functionality. This core module is very new and only has a few built in functions, but exposes a node-dota2 client with dota2.getClient(), For more info, see node-dota2.
Launches Dota for Jankbot. Always use this function to ensure Dota is launched instead of the direct dota2.client.launch(), as this function will not try to relaunch if Jankbot is already in-game.
Quits Dota for Jankbot. Always use this function instead of the direct dota2.client.exit(), as this function will not try to quit if Jankbot is already out of the game.
An instance of node-dota2@6.0.1. You can see a full list of functionality by reading the node-dota2 readme