mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-09-20 03:11:55 +00:00
19 lines
717 B
JavaScript
19 lines
717 B
JavaScript
const fetch = require('node-fetch');
|
|
|
|
module.exports = {
|
|
name: 'ready',
|
|
async execute(client, Discord) {
|
|
|
|
console.log('RadioX');
|
|
console.log('We will bring you finnish radio to your discord server');
|
|
console.log('(c)2020 EximiaBots by Warén Media / Christer Warén & MatteZ02');
|
|
|
|
client.stations = await fetch('https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json')
|
|
.then(res => res.json());
|
|
|
|
setInterval(async () => {
|
|
client.stations = await fetch('https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json')
|
|
.then(res => res.json());
|
|
}, 3600);
|
|
}
|
|
} |