1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 00:31:00 -05:00
Daggerbot-TS/src/typings/interfaces.d.ts

178 lines
4.2 KiB
TypeScript
Raw Normal View History

2022-12-29 05:10:13 -05:00
import Discord, { ColorResolvable } from 'discord.js';
2022-11-19 06:50:46 -05:00
export interface UserLevels {
messages: number,
level: number
}
export interface formatTimeOpt {
longNames: boolean,
commas: boolean
}
export interface punOpt {
time?: string,
reason?: string,
interaction?: Discord.ChatInputCommandInteraction<"cached">
}
export interface Punishment {
id: number;
type: string;
member: string;
moderator: string;
expired?: boolean;
2022-12-01 17:53:57 -05:00
time: number;
reason: string;
endTime?: number;
cancels?: number;
duration?: number;
}
export interface DSS_serverName {
data: FSData
}
export interface FSData {
server: FSServer,
slots: FSslots
}
export interface FSServer {
dayTime: number,
game: string,
mapName: string,
mapSize: number,
mapOverviewFilename: string,
money: number,
name: string,
server: string,
version: string
}
export interface FSslots {
capacity: number,
used: number,
players: Array<FSPlayers>
}
export interface FSPlayers {
isUsed: boolean,
isAdmin: boolean,
uptime: number,
name: string
}
export interface FSCareerSavegame {
settings: FSCareerSavegameSettings,
statistics: FSCareerSavegameStatistics,
slotSystem: FSCareerSavegameSlotSystem
}
export interface FSCareerSavegameSettings {
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
}
export interface FSCareerSavegameStatistics {
money: XMLText,
playTime: XMLText
}
export interface FSCareerSavegameSlotSystem {
_attributes: slotUsage
}
interface slotUsage {
slotUsage: string
}
interface XMLText {
_text: string
2022-12-29 05:10:13 -05:00
}
export interface Tokens {
token_main: string
token_beta: string
token_toast: string
token_tae: string
}
export interface Config {
embedColor: ColorResolvable,
embedColorGreen: ColorResolvable,
embedColorYellow: ColorResolvable,
embedColorRed: ColorResolvable,
embedColorBCA: ColorResolvable,
embedColorXmas: ColorResolvable,
LRSstart: number,
botSwitches: botSwitches,
eval: Eval,
mainServer: mainServer
}
interface botSwitches {
registerCommands: boolean,
commands: boolean,
logs: boolean,
automod: boolean,
mpstats: boolean,
autores: boolean
}
interface Eval {
allowed: boolean,
whitelist: Array<string>
}
interface mainServer {
id: string,
staffRoles: Array<string>,
roles: mainServerRoles,
channels: mainServerChannels
}
interface mainServerRoles {
admin: string,
bottech: string,
dcmod: string,
mpmanager: string,
mpmod: string,
vtcmanager: string,
vtcstaff: string,
ytmod: string,
mphelper: string,
mpplayer: string,
vtcmember: string
}
interface mainServerChannels {
console: string,
errors: string,
thismeanswar: string,
bot_status: string,
logs: string,
welcome: string,
botcommands: string
}