diff --git a/source/Interfaces/Configuration/IDiscordConfiguration.ts b/source/Interfaces/Configuration/IDiscordConfiguration.ts index 4d196ec..e14f9d2 100644 --- a/source/Interfaces/Configuration/IDiscordConfiguration.ts +++ b/source/Interfaces/Configuration/IDiscordConfiguration.ts @@ -1,4 +1,5 @@ export default interface IDiscordConfiguration { - channelId: string; + channelId: string; // Is meant for the game status display + gameUpdateChannelId: string|null; // Is meant for updates like bought fields, but is optional botToken: string; } \ No newline at end of file diff --git a/source/Services/DiscordEmbed.ts b/source/Services/DiscordEmbed.ts index f0552ae..0be6762 100644 --- a/source/Services/DiscordEmbed.ts +++ b/source/Services/DiscordEmbed.ts @@ -7,7 +7,7 @@ import Logging from "./Logging"; export default class DiscordEmbed { private appLogger: Logger; private discordAppClient: Client; - private appConfiguration: Configuration; + private readonly appConfiguration: Configuration; private serverStatsFeed: ServerStatusFeed; private firstMessageId: Snowflake | null = null; diff --git a/source/Services/GameUpdateFeed.ts b/source/Services/GameUpdateFeed.ts new file mode 100644 index 0000000..5c78461 --- /dev/null +++ b/source/Services/GameUpdateFeed.ts @@ -0,0 +1,9 @@ +import Configuration from "./Configuration"; + +export default class GameUpdateFeed { + private readonly appConfiguration: Configuration; + + constructor() { + this.appConfiguration = new Configuration(); + } +} \ No newline at end of file diff --git a/source/Services/ServerStatusFeed.ts b/source/Services/ServerStatusFeed.ts index c4db9ce..78d5073 100644 --- a/source/Services/ServerStatusFeed.ts +++ b/source/Services/ServerStatusFeed.ts @@ -3,7 +3,6 @@ import Configuration from "./Configuration"; import {XMLParser} from "fast-xml-parser"; import Logging from "./Logging"; import IPlayer from "../Interfaces/Feed/IPlayer"; -import IConfiguration from "../Interfaces/Configuration/IConfiguration"; import IMod from "../Interfaces/Feed/IMod"; export const CONNECTION_REFUSED = 'ECONNREFUSED'; @@ -14,9 +13,6 @@ export default class ServerStatusFeed { private _isOnline: boolean = false; private _isFetching: boolean = false; - constructor() { - } - /** * Returns the fetching status of the server stats feed * @returns {boolean} The fetching status of the server stats feed