bugfix update varname and messages
This commit is contained in:
@@ -16,7 +16,7 @@ var connection = mysql.createConnection({
|
||||
database: 'simcompanies'
|
||||
});
|
||||
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 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());
|
||||
|
||||
Reference in New Issue
Block a user