This commit is contained in:
Christer Warén
2020-03-09 02:00:02 +02:00
parent 148ce79316
commit 1deaba2376
3 changed files with 11 additions and 7 deletions

View File

@ -2,7 +2,6 @@ const { Client, Collection } = require('discord.js');
const Discord = require('discord.js');
const fs = require('fs');
const path = require('path');
const fetch = require('node-fetch');
const events = '../events/';
module.exports = class extends Client {
@ -30,9 +29,6 @@ module.exports = class extends Client {
this.commandAliases.set(command.alias, command);
}
client.stations = fetch('https://gitea.cwinfo.org/cwchristerw/radio/raw/branch/master/playlist.json')
.then(res => res.json());
this.on('ready', () => {
require(`${events}ready`).execute(this, Discord);
});