bugfix update varname and messages
This commit is contained in:
@@ -16,7 +16,7 @@ var connection = mysql.createConnection({
|
|||||||
database: 'simcompanies'
|
database: 'simcompanies'
|
||||||
});
|
});
|
||||||
const tgBot = new TelegramBot(tgInfo.token, { polling: false });
|
const tgBot = new TelegramBot(tgInfo.token, { polling: false });
|
||||||
bot.sendMessage(tgInfo.debugChat, 'INF: started polling resource prices.');
|
tgBot.sendMessage(tgInfo.debugChat, 'INF: dataminer started polling resource prices.');
|
||||||
|
|
||||||
const exchangeAPI = "https://www.simcompanies.com/api/market/";
|
const exchangeAPI = "https://www.simcompanies.com/api/market/";
|
||||||
const resourceAPI = "https://www.simcompanies.com/api/v3/en/encyclopedia/resources/";
|
const resourceAPI = "https://www.simcompanies.com/api/v3/en/encyclopedia/resources/";
|
||||||
@@ -86,7 +86,7 @@ const storeFullData = async marketData => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
bot.sendMessage(tgInfo.debugChat, 'INF: successfully stored new prices.');
|
tgBot.sendMessage(tgInfo.debugChat, 'INF: dataminer successfully stored new prices.');
|
||||||
}
|
}
|
||||||
|
|
||||||
storeFullData(getFullData());
|
storeFullData(getFullData());
|
||||||
|
|||||||
Reference in New Issue
Block a user