2023-02-16 03:48:24 -05:00
|
|
|
import Discord from 'discord.js';
|
2022-12-03 18:35:14 -05:00
|
|
|
|
2022-11-17 12:58:19 -05:00
|
|
|
export interface Punishment {
|
2023-03-05 05:04:10 -05:00
|
|
|
_id: number;
|
|
|
|
type: string;
|
|
|
|
member: string;
|
|
|
|
moderator: string;
|
|
|
|
expired?: boolean;
|
|
|
|
time: number;
|
|
|
|
reason: string;
|
|
|
|
endTime?: number;
|
|
|
|
cancels?: number;
|
|
|
|
duration?: number;
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
export interface FSData {
|
2023-05-20 03:17:23 -04:00
|
|
|
server: {
|
|
|
|
dayTime: number,
|
|
|
|
game: string,
|
|
|
|
mapName: string,
|
|
|
|
mapSize: number,
|
|
|
|
mapOverviewFilename: string,
|
|
|
|
money: number,
|
|
|
|
name: string,
|
|
|
|
server: string,
|
|
|
|
version: string
|
|
|
|
},
|
|
|
|
slots: {
|
|
|
|
capacity: number,
|
|
|
|
used: number,
|
|
|
|
players: Array<FSPlayer>
|
2023-09-30 13:44:38 -04:00
|
|
|
},
|
|
|
|
vehicles: Array<FSVehicle>
|
|
|
|
}
|
|
|
|
interface FSVehicle {
|
|
|
|
name: string,
|
|
|
|
category: string,
|
|
|
|
type: string,
|
|
|
|
x: number,
|
|
|
|
y: number,
|
|
|
|
z: number,
|
|
|
|
fills: Array<FSVehicleFill>,
|
|
|
|
controller: string
|
|
|
|
}
|
|
|
|
interface FSVehicleFill {
|
|
|
|
type: string,
|
|
|
|
level: number
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
2023-05-07 04:41:20 -04:00
|
|
|
export interface FSPlayer {
|
2023-03-05 05:04:10 -05:00
|
|
|
isUsed: boolean,
|
|
|
|
isAdmin: boolean,
|
|
|
|
uptime: number,
|
|
|
|
name: string
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
export interface FSCareerSavegame {
|
2023-05-20 03:17:23 -04:00
|
|
|
settings: {
|
|
|
|
savegameName: XMLText,
|
|
|
|
creationDate: XMLText,
|
|
|
|
mapId: XMLText,
|
|
|
|
mapTitle: XMLText,
|
|
|
|
saveDataFormatted: XMLText,
|
|
|
|
saveDate: XMLText,
|
|
|
|
resetVehicles: XMLText,
|
|
|
|
trafficeEnabled: XMLText,
|
|
|
|
stopAndGoBraking: XMLText,
|
|
|
|
trailerFillLimit: XMLText,
|
|
|
|
automaticMotorStartEnabled: XMLText,
|
|
|
|
growthMode: XMLText,
|
|
|
|
fixedSeasonalVisuals: XMLText,
|
|
|
|
plannedDaysPerPeriod: XMLText,
|
|
|
|
fruitDestruction: XMLText,
|
|
|
|
plowingRequiredEnabled: XMLText,
|
|
|
|
stonesEnabled: XMLText,
|
|
|
|
weedsEnabled: XMLText,
|
|
|
|
limeRequired: XMLText,
|
|
|
|
isSnowEnabled: XMLText,
|
|
|
|
fuelUsage: XMLText,
|
|
|
|
helperBuyFuel: XMLText,
|
|
|
|
helperBuySeeds: XMLText,
|
|
|
|
helperSlurrySource: XMLText,
|
|
|
|
helperManureSource: XMLText,
|
|
|
|
densityMapRevision: XMLText,
|
|
|
|
terrainTextureRevision: XMLText,
|
|
|
|
terrainLodTextureRevision: XMLText,
|
|
|
|
splitShapesRevision: XMLText,
|
|
|
|
tipCollisionRevision: XMLText,
|
|
|
|
placementCollisionRevision: XMLText,
|
|
|
|
navigationCollisionRevision: XMLText,
|
|
|
|
mapDensityMapRevision: XMLText,
|
|
|
|
mapTerrainTextureRevision: XMLText,
|
|
|
|
mapTerrainLodTextureRevision: XMLText,
|
|
|
|
mapSplitShapesRevision: XMLText,
|
|
|
|
mapTipCollisionRevision: XMLText,
|
|
|
|
mapPlacementCollisionRevision: XMLText,
|
|
|
|
mapNavigationCollisionRevision: XMLText,
|
|
|
|
difficulty: XMLText,
|
|
|
|
economicDifficulty: XMLText,
|
|
|
|
dirtInterval: XMLText,
|
|
|
|
timeScale: XMLText,
|
|
|
|
autoSaveInterval: XMLText
|
|
|
|
},
|
|
|
|
statistics: {
|
|
|
|
money: XMLText,
|
|
|
|
playTime: XMLText
|
|
|
|
},
|
|
|
|
slotSystem: {
|
|
|
|
_attributes: {
|
|
|
|
slotUsage: string
|
|
|
|
}
|
|
|
|
}
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
interface XMLText {
|
2023-03-05 05:04:10 -05:00
|
|
|
_text: string
|
2022-12-29 05:10:13 -05:00
|
|
|
}
|
|
|
|
export interface Config {
|
2023-03-05 05:04:10 -05:00
|
|
|
embedColor: Discord.ColorResolvable,
|
|
|
|
embedColorGreen: Discord.ColorResolvable,
|
2023-05-07 04:41:20 -04:00
|
|
|
embedColorOrange: Discord.ColorResolvable,
|
2023-03-05 05:04:10 -05:00
|
|
|
embedColorYellow: Discord.ColorResolvable,
|
|
|
|
embedColorRed: Discord.ColorResolvable,
|
|
|
|
embedColorBCA: Discord.ColorResolvable,
|
|
|
|
embedColorXmas: Discord.ColorResolvable,
|
|
|
|
LRSstart: number,
|
|
|
|
whitelistedServers: Array<string>,
|
2023-05-20 03:17:23 -04:00
|
|
|
MPStatsLocation: {
|
2023-08-25 05:51:09 -04:00
|
|
|
mainServer: {
|
2023-08-15 06:47:31 -04:00
|
|
|
channel: string
|
|
|
|
message: string
|
|
|
|
},
|
2023-08-25 05:51:09 -04:00
|
|
|
secondServer: {
|
2023-08-15 06:47:31 -04:00
|
|
|
channel: string
|
|
|
|
message: string
|
|
|
|
}
|
2023-05-20 03:17:23 -04:00
|
|
|
},
|
|
|
|
botSwitches: {
|
2023-08-14 04:33:49 -04:00
|
|
|
dailyMsgsBackup: boolean,
|
2023-05-20 03:17:23 -04:00
|
|
|
registerCommands: boolean,
|
|
|
|
commands: boolean,
|
|
|
|
logs: boolean,
|
2023-06-24 22:17:35 -04:00
|
|
|
music: boolean,
|
2023-05-20 03:17:23 -04:00
|
|
|
buttonRoles: boolean,
|
|
|
|
automod: boolean,
|
|
|
|
mpstats: boolean,
|
|
|
|
autores: boolean
|
|
|
|
},
|
2023-03-05 05:04:10 -05:00
|
|
|
botPresence: Discord.PresenceData,
|
2023-05-02 00:19:05 -04:00
|
|
|
eval: boolean,
|
2023-05-20 03:17:23 -04:00
|
|
|
whitelist: Array<string>,
|
|
|
|
contribList: Array<string>,
|
|
|
|
mainServer: {
|
|
|
|
id: string,
|
|
|
|
staffRoles: Array<string>,
|
|
|
|
roles: {
|
|
|
|
admin: string,
|
|
|
|
bottech: string,
|
|
|
|
dcmod: string,
|
|
|
|
mpmanager: string,
|
|
|
|
mpmod: string,
|
|
|
|
vtcmanager: string,
|
|
|
|
vtcstaff: string,
|
|
|
|
ytmod: string,
|
|
|
|
mphelper: string,
|
|
|
|
mpplayer: string,
|
|
|
|
vtcmember: string
|
|
|
|
},
|
|
|
|
channels: {
|
|
|
|
console: string,
|
|
|
|
errors: string,
|
|
|
|
thismeanswar: string,
|
2023-08-24 19:15:56 -04:00
|
|
|
bot_suggestions: string,
|
2023-05-20 03:17:23 -04:00
|
|
|
bot_status: string,
|
|
|
|
logs: string,
|
|
|
|
welcome: string,
|
|
|
|
botcommands: string,
|
|
|
|
bankick_log: string,
|
|
|
|
fs_server_log: string,
|
2023-06-09 21:11:19 -04:00
|
|
|
punishment_log: string,
|
|
|
|
dcmod_chat: string
|
2023-05-20 03:17:23 -04:00
|
|
|
}
|
|
|
|
}
|
2023-09-30 13:44:38 -04:00
|
|
|
}
|