Typescript Continue

This commit is contained in:
Christer Warén
2023-06-06 01:39:35 +03:00
parent 7acabe411b
commit 2d17c33d21
32 changed files with 233 additions and 149 deletions

View File

@ -6,9 +6,9 @@ import Streamer from "./client/classes/Streamer";
import Statistics from "./client/classes/Statistics";
import { command } from "./client/commands";
import config from "./config";
import messages from "./client/messages";
import events from "./client/events"
import funcs from "./client/funcs";
import { messages } from "./client/messages";
import { events } from "./client/events"
import { funcs } from "./client/funcs";
const GatewayIntents = new IntentsBitField();
GatewayIntents.add(
@ -19,8 +19,8 @@ GatewayIntents.add(
export default class RadioClient extends Client {
readonly commands: Collection<string, command>;
public events: any;
public funcs: any;
readonly events = events;
readonly funcs = funcs;
readonly config = config;
readonly messages = messages;
public datastore: Datastore | null;
@ -43,9 +43,6 @@ export default class RadioClient extends Client {
this.radio = null;
this.messageEmojis = null;
this.events = events;
this.funcs = funcs;
console.log('RadioX ' + this.config.version);
console.log('Internet Radio to your Discord guild');
console.log('(c)2020-2022 EximiaBots by Warén Group');
@ -73,7 +70,7 @@ export default class RadioClient extends Client {
});
this.on("error", error => {
this.funcs.logger("Discord Client / Error");
this.funcs.logger("Discord Client", "Error");
console.error(error);
console.log('');
});
@ -99,7 +96,7 @@ export default class RadioClient extends Client {
});
this.login(this.config.token).catch((err) => {
this.funcs.logger("Discord Client / Error");
this.funcs.logger("Discord Client", "Login Error");
console.log(err);
console.log('');
});