2023-02-16 03:48:24 -05:00
|
|
|
import Discord from 'discord.js';
|
2022-12-03 18:35:14 -05:00
|
|
|
|
2022-11-19 06:50:46 -05:00
|
|
|
export interface UserLevels {
|
2023-03-05 05:04:10 -05:00
|
|
|
messages: number,
|
|
|
|
level: number
|
2022-11-19 06:50:46 -05:00
|
|
|
}
|
2022-11-17 12:58:19 -05:00
|
|
|
export interface formatTimeOpt {
|
2023-03-05 05:04:10 -05:00
|
|
|
longNames: boolean,
|
|
|
|
commas: boolean
|
2022-11-15 09:06:18 -05:00
|
|
|
}
|
2022-11-17 12:58:19 -05:00
|
|
|
export interface punOpt {
|
2023-03-05 05:04:10 -05:00
|
|
|
time?: string,
|
|
|
|
reason?: string,
|
|
|
|
interaction?: Discord.ChatInputCommandInteraction<"cached">
|
2022-11-15 09:06:18 -05:00
|
|
|
}
|
2023-02-16 03:48:24 -05:00
|
|
|
export interface repeatedMessages {
|
2023-03-09 20:22:05 -05:00
|
|
|
[key:string]: {data: Discord.Collection<number,{type:string,channel:string}>, timeout: NodeJS.Timeout}
|
2023-02-16 03:48:24 -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 DSS_serverName {
|
2023-03-05 05:04:10 -05:00
|
|
|
data: FSData
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
export interface FSData {
|
2023-03-05 05:04:10 -05:00
|
|
|
server: FSServer,
|
|
|
|
slots: FSslots
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
export interface FSServer {
|
2023-03-05 05:04:10 -05:00
|
|
|
dayTime: number,
|
|
|
|
game: string,
|
|
|
|
mapName: string,
|
|
|
|
mapSize: number,
|
|
|
|
mapOverviewFilename: string,
|
|
|
|
money: number,
|
|
|
|
name: string,
|
|
|
|
server: string,
|
|
|
|
version: string
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
export interface FSslots {
|
2023-03-05 05:04:10 -05:00
|
|
|
capacity: number,
|
|
|
|
used: number,
|
|
|
|
players: Array<FSPlayers>
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
export interface FSPlayers {
|
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-03-05 05:04:10 -05:00
|
|
|
settings: FSCareerSavegameSettings,
|
|
|
|
statistics: FSCareerSavegameStatistics,
|
|
|
|
slotSystem: FSCareerSavegameSlotSystem
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
export interface FSCareerSavegameSettings {
|
2023-03-05 05:04:10 -05:00
|
|
|
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
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
export interface FSCareerSavegameStatistics {
|
2023-03-05 05:04:10 -05:00
|
|
|
money: XMLText,
|
|
|
|
playTime: XMLText
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
export interface FSCareerSavegameSlotSystem {
|
2023-03-05 05:04:10 -05:00
|
|
|
_attributes: slotUsage
|
2022-12-18 23:06:00 -05:00
|
|
|
}
|
|
|
|
interface slotUsage {
|
2023-03-05 05:04:10 -05:00
|
|
|
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 Tokens {
|
2023-03-05 05:04:10 -05:00
|
|
|
main: string
|
|
|
|
beta: string
|
|
|
|
toast: string
|
|
|
|
tae: string
|
2023-04-17 04:17:27 -04:00
|
|
|
octokit: string
|
2023-03-05 05:04:10 -05:00
|
|
|
webhook_url: string
|
|
|
|
webhook_url_test: string
|
|
|
|
mongodb_uri: string
|
|
|
|
mongodb_uri_dev: 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,
|
|
|
|
embedColorYellow: Discord.ColorResolvable,
|
|
|
|
embedColorRed: Discord.ColorResolvable,
|
|
|
|
embedColorBCA: Discord.ColorResolvable,
|
|
|
|
embedColorXmas: Discord.ColorResolvable,
|
|
|
|
LRSstart: number,
|
|
|
|
whitelistedServers: Array<string>,
|
|
|
|
botSwitches: botSwitches,
|
|
|
|
botPresence: Discord.PresenceData,
|
2023-05-02 00:19:05 -04:00
|
|
|
eval: boolean,
|
|
|
|
whitelist: Array<string>
|
2023-03-05 05:04:10 -05:00
|
|
|
mainServer: mainServer
|
2022-12-29 05:10:13 -05:00
|
|
|
}
|
|
|
|
interface botSwitches {
|
2023-03-05 05:04:10 -05:00
|
|
|
registerCommands: boolean,
|
|
|
|
commands: boolean,
|
|
|
|
logs: boolean,
|
2023-05-02 17:35:43 -04:00
|
|
|
buttonRoles: boolean,
|
2023-03-05 05:04:10 -05:00
|
|
|
automod: boolean,
|
|
|
|
mpstats: boolean,
|
|
|
|
autores: boolean
|
2022-12-29 05:10:13 -05:00
|
|
|
}
|
|
|
|
interface mainServer {
|
2023-03-05 05:04:10 -05:00
|
|
|
id: string,
|
|
|
|
staffRoles: Array<string>,
|
|
|
|
roles: mainServerRoles,
|
|
|
|
channels: mainServerChannels
|
2022-12-29 05:10:13 -05:00
|
|
|
}
|
|
|
|
interface mainServerRoles {
|
2023-03-05 05:04:10 -05:00
|
|
|
admin: string,
|
|
|
|
bottech: string,
|
|
|
|
dcmod: string,
|
|
|
|
mpmanager: string,
|
|
|
|
mpmod: string,
|
|
|
|
vtcmanager: string,
|
|
|
|
vtcstaff: string,
|
|
|
|
ytmod: string,
|
|
|
|
mphelper: string,
|
|
|
|
mpplayer: string,
|
|
|
|
vtcmember: string
|
2022-12-29 05:10:13 -05:00
|
|
|
}
|
|
|
|
interface mainServerChannels {
|
2023-03-05 05:04:10 -05:00
|
|
|
console: string,
|
|
|
|
errors: string,
|
|
|
|
thismeanswar: string,
|
|
|
|
bot_status: string,
|
|
|
|
logs: string,
|
|
|
|
welcome: string,
|
2023-04-29 19:41:12 -04:00
|
|
|
botcommands: string,
|
|
|
|
bankick_log: string
|
2022-11-15 09:06:18 -05:00
|
|
|
}
|