SquadJS/squad-server/utils/constants.js
pull[bot] 4822f7023a
[pull] master from Thomas-Smyth:beta (#24)
* Updated Year For Copyright Message

* fixed terminology

* Fix template literals for copyright message

* Fix SCBL Info plugin's threshold option

* Wrap SCBL API call in try catch

* Update license

* ESLint & README Generation

* Run Action on pull request

* admin list parse improvements

* prefer for loop for readability

* Delete pull.yml

Co-authored-by: werewolfboy13 <werewolfboy13@afocommunity.com>
Co-authored-by: Marek <werewolfpartner@gmail.com>
Co-authored-by: Thomas Smyth <thomas.smyth3141@gmail.com>
Co-authored-by: SeanWalsh95 <SeanWalsh95@users.noreply.github.com>
2021-01-28 13:34:27 -05:00

15 lines
492 B
JavaScript

import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const SQUADJS_VERSION = JSON.parse(
fs.readFileSync(path.resolve(__dirname, '../../package.json'), 'utf8')
).version;
/* As set out by the terms of the license, the following should not be modified. */
const COPYRIGHT_MESSAGE = `Powered by SquadJS, Copyright © ${new Date().getFullYear()}`;
export { SQUADJS_VERSION, COPYRIGHT_MESSAGE };