diff --git a/.gitignore b/.gitignore index 76ed80b..0fd1136 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ data/ *.toml !config.template.toml .vscode/ -src/types/**/*.ts words/ data.json diff --git a/src/types/config.ts b/src/types/config.ts new file mode 100644 index 0000000..5ab31bc --- /dev/null +++ b/src/types/config.ts @@ -0,0 +1,68 @@ +/* +This file was automatically generated by joi-to-typescript +Do not modify this file manually +*/ + +/** + * The configuration format for the server + */ +export interface config { + /** + * The database specific options + */ + database: databaseOptions; + /** + * The game-specific options + */ + game: gameOptions; + /** + * The web server options + */ + server: serverOptions; +} + +/** + * The database specific options + */ +export interface databaseOptions { + /** + * The location indicator where the database is. This can be a filepath or a socket URI, depending on what database is being used. + */ + uri: string; +} + +/** + * The game-specific options + */ +export interface gameOptions { + files: { + /** + * Unknown Property + */ + [x: string]: unknown; + }; + max_incorrect: number; + /** + * The options for all of the penalties from actions + */ + penalties: penaltyOptions; +} + +/** + * The options for all of the penalties from actions + */ +export interface penaltyOptions { + duplicate: number; + guess: number; + solve: number; +} + +/** + * The web server options + */ +export interface serverOptions { + /** + * The port the server will run on + */ + port: number; +} diff --git a/src/types/general.ts b/src/types/general.ts new file mode 100644 index 0000000..00d1a21 --- /dev/null +++ b/src/types/general.ts @@ -0,0 +1,6 @@ +/* +This file was automatically generated by joi-to-typescript +Do not modify this file manually +*/ + +export type channelSchema = string; diff --git a/src/types/index.ts b/src/types/index.ts new file mode 100644 index 0000000..9b4c2f9 --- /dev/null +++ b/src/types/index.ts @@ -0,0 +1,8 @@ +/* +This file was automatically generated by joi-to-typescript +Do not modify this file manually +*/ + +export * from './config'; +export * from './general'; +export * from './nightbot'; diff --git a/src/types/nightbot.ts b/src/types/nightbot.ts new file mode 100644 index 0000000..a16c4b1 --- /dev/null +++ b/src/types/nightbot.ts @@ -0,0 +1,13 @@ +/* +This file was automatically generated by joi-to-typescript +Do not modify this file manually +*/ + +/** + * The custom headers Nightbot makes requests with + */ +export interface nightbotCustomHeaders { + 'nightbot-channel'?: string; + 'nightbot-response-url'?: string; + 'nightbot-user'?: string; +}