mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +00:00
Fixed typos in ready.ts
This commit is contained in:
parent
c539a63011
commit
42591791c3
@ -25,7 +25,7 @@ module.exports = {
|
|||||||
client.stations = await fetch(client.config.stationslistUrl)
|
client.stations = await fetch(client.config.stationslistUrl)
|
||||||
.then(client.funcs.checkFetchStatus)
|
.then(client.funcs.checkFetchStatus)
|
||||||
.then(response => response.json());
|
.then(response => response.json());
|
||||||
client.funcs.logger('Stations', 'Successfully fetched list' + "\n");
|
client.funcs.logger('Stations', 'Successfully fetched list');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
client.funcs.logger('Stations', ' Fetching list failed');
|
client.funcs.logger('Stations', ' Fetching list failed');
|
||||||
console.error(error + "\n");
|
console.error(error + "\n");
|
||||||
@ -33,11 +33,11 @@ module.exports = {
|
|||||||
|
|
||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
client.funcs.logger('Stations' + 'Started fetching list – ' + client.config.stationslistUrl);
|
client.funcs.logger('Stations', 'Started fetching list – ' + client.config.stationslistUrl);
|
||||||
client.stations = await fetch(client.config.stationslistUrl)
|
client.stations = await fetch(client.config.stationslistUrl)
|
||||||
.then(client.funcs.checkFetchStatus)
|
.then(client.funcs.checkFetchStatus)
|
||||||
.then(response => response.json());
|
.then(response => response.json());
|
||||||
console.log('Stations', 'Successfully fetched list' + "\n");
|
client.funcs.logger('Stations', 'Successfully fetched list');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
client.funcs.logger('Stations', 'Fetching list failed');
|
client.funcs.logger('Stations', 'Fetching list failed');
|
||||||
//console.error(error);
|
//console.error(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user