-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from Thomas-Smyth/beta
SquadJS v1.3.0
- Loading branch information
Showing
73 changed files
with
6,000 additions
and
1,691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
"ecmaVersion": 2020 | ||
}, | ||
"extends": [ | ||
"standard", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.tmp | ||
|
||
index-test.js | ||
config-test.json | ||
|
||
# Dependencies | ||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"singleQuote": true, | ||
"printWidth": 100 | ||
"printWidth": 100, | ||
"trailingComma": "none" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
{ | ||
"server": { | ||
"id": 1, | ||
"host": "xxx.xxx.xxx.xxx", | ||
"queryPort": 27165, | ||
"rconPort": 21114, | ||
"rconPassword": "password", | ||
"logReaderMode": "tail", | ||
"logDir": "C:/path/to/squad/log/folder", | ||
"ftpPort": 21, | ||
"ftpUser": "FTP Username", | ||
"ftpPassword": "FTP Password", | ||
"rconVerbose": true | ||
}, | ||
"connectors": { | ||
"discord": "Discord Login Token", | ||
"layerFilter": { | ||
"type": "buildFromFilter", | ||
"filter": { | ||
"whitelistedLayers": null, | ||
"blacklistedLayers": null, | ||
"whitelistedMaps": null, | ||
"blacklistedMaps": null, | ||
"whitelistedGamemodes": null, | ||
"blacklistedGamemodes": [ | ||
"Training" | ||
], | ||
"flagCountMin": null, | ||
"flagCountMax": null, | ||
"hasCommander": null, | ||
"hasTanks": null, | ||
"hasHelicopters": null | ||
}, | ||
"activeLayerFilter": { | ||
"historyResetTime": 18000000, | ||
"layerHistoryTolerance": 8, | ||
"mapHistoryTolerance": 4, | ||
"gamemodeHistoryTolerance": { | ||
"Invasion": 4 | ||
}, | ||
"gamemodeRepetitiveTolerance": { | ||
"Invasion": 4 | ||
}, | ||
"playerCountComplianceEnabled": true, | ||
"factionComplianceEnabled": true, | ||
"factionHistoryTolerance": { | ||
"RUS": 4 | ||
}, | ||
"factionRepetitiveTolerance": { | ||
"RUS": 4 | ||
} | ||
} | ||
}, | ||
"mysql": { | ||
"connectionLimit": 10, | ||
"host": "host", | ||
"port": 3306, | ||
"user": "squadjs", | ||
"password": "password", | ||
"database": "squadjs" | ||
} | ||
}, | ||
"plugins": [ | ||
{ | ||
"plugin": "auto-tk-warn", | ||
"enabled": true, | ||
"message": "Please apologise for ALL TKs in ALL chat!" | ||
}, | ||
{ | ||
"plugin": "discord-admin-broadcast", | ||
"enabled": true, | ||
"discordClient": "discord", | ||
"channelID": "Discord Channel ID", | ||
"color": 16761867 | ||
}, | ||
{ | ||
"plugin": "discord-admin-cam-logs", | ||
"enabled": true, | ||
"discordClient": "discord", | ||
"channelID": "Discord Channel ID", | ||
"color": 16761867 | ||
}, | ||
{ | ||
"plugin": "discord-chat", | ||
"enabled": true, | ||
"discordClient": "discord", | ||
"channelID": "Discord Channel ID", | ||
"ignoreChats": [ | ||
"ChatSquad" | ||
], | ||
"chatColors": {}, | ||
"color": 16761867 | ||
}, | ||
{ | ||
"plugin": "discord-admin-request", | ||
"enabled": true, | ||
"discordClient": "discord", | ||
"channelID": "Discord Channel ID", | ||
"ignoreChats": [ | ||
"ChatSquad" | ||
], | ||
"ignorePhrases": [], | ||
"adminPrefix": "!admin", | ||
"pingGroups": [], | ||
"pingDelay": 60000, | ||
"color": 16761867 | ||
}, | ||
{ | ||
"plugin": "discord-debug", | ||
"enabled": false, | ||
"discordClient": "discord", | ||
"channelID": "Discord Channel ID", | ||
"events": [] | ||
}, | ||
{ | ||
"plugin": "discord-rcon", | ||
"enabled": true, | ||
"discordClient": "discord", | ||
"channelID": "Discord Channel ID", | ||
"prependAdminNameInBroadcast": false | ||
}, | ||
{ | ||
"plugin": "discord-server-status", | ||
"enabled": true, | ||
"discordClient": "discord", | ||
"color": 16761867, | ||
"colorGradient": true, | ||
"connectLink": true, | ||
"command": "!server", | ||
"disableStatus": false | ||
}, | ||
{ | ||
"plugin": "discord-teamkill", | ||
"enabled": true, | ||
"discordClient": "discord", | ||
"channelID": "Discord Channel ID", | ||
"teamkillColor": 16761867, | ||
"suicideColor": 16761867, | ||
"ignoreSuicides": false, | ||
"disableSCBL": false | ||
}, | ||
{ | ||
"plugin": "mapvote-123", | ||
"enabled": false, | ||
"minVoteCount": null | ||
}, | ||
{ | ||
"plugin": "mapvote-did-you-mean", | ||
"enabled": false, | ||
"layerFilter": "layerFilter", | ||
"alwaysOn": true, | ||
"minPlayerCount": null, | ||
"minVoteCount": null | ||
}, | ||
{ | ||
"plugin": "mysql-log", | ||
"enabled": false, | ||
"mysqlPool": "mysql", | ||
"overrideServerID": null | ||
}, | ||
{ | ||
"plugin": "seeding-message", | ||
"enabled": true, | ||
"mode": "interval", | ||
"interval": 150000, | ||
"delay": 45000, | ||
"seedingThreshold": 50, | ||
"seedingMessage": "Seeding Rules Active! Fight only over the middle flags! No FOB Hunting!", | ||
"liveEnabled": true, | ||
"liveThreshold": 2, | ||
"liveMessage": "Live" | ||
}, | ||
{ | ||
"plugin": "team-randomizer", | ||
"enabled": true, | ||
"command": "!randomize" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
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 = 'SquadJS, Copyright © 2020 Thomas Smyth'; | ||
|
||
export { SQUADJS_VERSION, COPYRIGHT_MESSAGE }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import SquadLayers from './squad-layers.js'; | ||
import SquadLayerFilter from './squad-layer-filter.js'; | ||
|
||
export { SquadLayers, SquadLayerFilter }; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
import { COPYRIGHT_MESSAGE } from '../config.js'; | ||
import { SQUADJS_VERSION, COPYRIGHT_MESSAGE } from '../constants.js'; | ||
|
||
const LOGO = ` | ||
_____ ____ _ _ _____ _ | ||
/ ____|/ __ \\| | | | /\\ | __ \\ (_) | ||
| (___ | | | | | | | / \\ | | | | _ ___ | ||
\\___ \\| | | | | | |/ /\\ \\ | | | || / __| | ||
____) | |__| | |__| / ____ \\| |__| || \\__ \\ | ||
|_____/ \\___\\_\\\\____/_/ \\_\\_____(_) |___/ | ||
_/ | | ||
|__/ | ||
_____ ____ _ _ _____ \x1b[33m_\x1b[0m | ||
/ ____|/ __ \\| | | | /\\ | __ \\ \x1b[33m(_)\x1b[0m | ||
| (___ | | | | | | | / \\ | | | | \x1b[33m_ ___\x1b[0m | ||
\\___ \\| | | | | | |/ /\\ \\ | | | |\x1b[33m| / __|\x1b[0m | ||
____) | |__| | |__| / ____ \\| |__| |\x1b[33m| \\__ \\\x1b[0m | ||
|_____/ \\___\\_\\\\____/_/ \\_\\_____\x1b[33m(_) |___/\x1b[0m | ||
\x1b[33m_/ |\x1b[0m | ||
\x1b[33m|__/\x1b[0m | ||
${COPYRIGHT_MESSAGE} | ||
GitHub: https://github.com/Thomas-Smyth/SquadJS | ||
Version: ${SQUADJS_VERSION} | ||
`; | ||
|
||
export default function() { | ||
export default function () { | ||
console.log(LOGO); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export default function(time) { | ||
return new Promise(resolve => { | ||
export default function (time) { | ||
return new Promise((resolve) => { | ||
setTimeout(resolve, time); | ||
}); | ||
} |
Oops, something went wrong.