28 lines
871 B
TypeScript
Raw Normal View History

import { inject, injectable } from "tsyringe";
import type { ILogger } from "@spt-aki/models/spt/utils/ILogger";
2022-06-27 00:11:22 -04:00
import { AkiConfigHandler } from "./AkiConfigHandler";
@injectable()
export class Notifications
{
constructor(
@inject("WinstonLogger") private logger: ILogger,
2022-06-27 00:11:22 -04:00
@inject("AkiConfigHandler") private configHandler: AkiConfigHandler
)
{}
public sendNotifications(): void
{
const config = this.configHandler.getConfig();
const locale = this.configHandler.getLocales();
if (!config.other.hideWarningMessage)
{
2022-06-27 00:11:22 -04:00
this.logger.log("[AIO Config INFORMATION]", "yellow");
this.logger.info("Please read the AKICONFIG README.pdf carefully as this has all the information you need.");
this.logger.log("[AIO Config INFORMATION]", "yellow");
}
}
}