Browse Source
* Update package.json * Adhere to Markdown and TS Style Guidelines * Adhere to ESLint * Some more edits to adhere to the ESLint standard * style: modify slightly to adhere to ESLint spec Co-authored-by: Piyush Acharya <acharyapiyush1@outlook.com> Co-authored-by: Abheek <abheekd@protonmail.com>pull/48/head
Piyush Acharya
2 years ago
committed by
GitHub
20 changed files with 365 additions and 218 deletions
@ -1,17 +1,17 @@ |
|||||
# Use root/example as user/password credentials |
# Use root/example as user/password credentials |
||||
version: '3.1' |
version: '3.1' |
||||
services: |
services: |
||||
mongo: |
mongo: |
||||
image: mongo:4.4 |
image: mongo:4.4 |
||||
restart: always |
restart: always |
||||
volumes: |
volumes: |
||||
- ./data:/data/db |
- ./data:/data/db |
||||
|
|
||||
awesomescibo: |
awesomescibo: |
||||
image: docker.io/adawesomeguy/awesomescibo:latest |
image: docker.io/adawesomeguy/awesomescibo:latest |
||||
restart: unless-stopped |
restart: unless-stopped |
||||
environment: |
environment: |
||||
MONGO_URI: "mongodb://mongo:27017/AWESOME" |
MONGO_URI: "mongodb://mongo:27017/AWESOME" |
||||
TOKEN: "" |
TOKEN: "" |
||||
CLIENT_ID: "" |
CLIENT_ID: "" |
||||
TESTING_GUILD: "" |
TESTING_GUILD: "" |
||||
|
@ -1,20 +1,20 @@ |
|||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||
|
|
||||
const fs = require('node:fs'); |
const fs = require('node:fs'); |
||||
const { REST } = require('@discordjs/rest'); |
const {REST} = require('@discordjs/rest'); |
||||
const { Routes } = require('discord-api-types/v9'); |
const {Routes} = require('discord-api-types/v9'); |
||||
const { clientId, token } = require('./helpers/env'); |
const {clientId, token} = require('./helpers/env'); |
||||
|
|
||||
const commands = []; |
const commands = []; |
||||
const commandFiles = fs.readdirSync(__dirname + '/commands').filter(file => file.endsWith('.js')); |
const commandFiles = fs.readdirSync(__dirname + '/commands').filter(file => file.endsWith('.js')); |
||||
|
|
||||
for (const file of commandFiles) { |
for (const file of commandFiles) { |
||||
const command = require(`${__dirname}/commands/${file}`); |
const command = require(`${__dirname}/commands/${file}`); |
||||
commands.push(command.data.toJSON()); |
commands.push(command.data.toJSON()); |
||||
} |
} |
||||
|
|
||||
const rest = new REST({ version: '9' }).setToken(token); |
const rest = new REST({version: '9'}).setToken(token); |
||||
|
|
||||
rest.put(Routes.applicationCommands(clientId), { body: commands }) |
rest.put(Routes.applicationCommands(clientId), {body: commands}) |
||||
.then(() => console.log('Successfully registered application commands.')) |
.then(() => console.log('Successfully registered application commands.')) |
||||
.catch(console.error); |
.catch(console.error); |
||||
|
@ -1,101 +1,104 @@ |
|||||
{ |
{ |
||||
"compilerOptions": { |
"compilerOptions": { |
||||
/* Visit https://aka.ms/tsconfig.json to read more about this file */ |
/* Visit https://aka.ms/tsconfig.json to read more about this file */ |
||||
|
/* Projects */ |
||||
/* Projects */ |
"incremental": true, |
||||
"incremental": true, /* Enable incremental compilation */ |
/* Enable incremental compilation */ |
||||
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ |
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ |
||||
// "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */ |
// "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */ |
||||
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */ |
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */ |
||||
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ |
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ |
||||
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ |
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ |
||||
|
/* Language and Environment */ |
||||
/* Language and Environment */ |
"target": "es2016", |
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ |
/* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ |
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ |
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ |
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */ |
// "jsx": "preserve", /* Specify what JSX code is generated. */ |
||||
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ |
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ |
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ |
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ |
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */ |
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */ |
||||
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ |
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ |
||||
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */ |
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */ |
||||
// "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */ |
// "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */ |
||||
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ |
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ |
||||
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ |
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ |
||||
|
/* Modules */ |
||||
/* Modules */ |
"module": "commonjs", |
||||
"module": "commonjs", /* Specify what module code is generated. */ |
/* Specify what module code is generated. */ |
||||
// "rootDir": "./", /* Specify the root folder within your source files. */ |
// "rootDir": "./", /* Specify the root folder within your source files. */ |
||||
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ |
"moduleResolution": "node", |
||||
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ |
/* Specify how TypeScript looks up a file from a given module specifier. */ |
||||
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ |
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ |
||||
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ |
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ |
||||
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */ |
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ |
||||
// "types": [], /* Specify type package names to be included without being referenced in a source file. */ |
// "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */ |
||||
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ |
// "types": [], /* Specify type package names to be included without being referenced in a source file. */ |
||||
// "resolveJsonModule": true, /* Enable importing .json files */ |
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ |
||||
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */ |
// "resolveJsonModule": true, /* Enable importing .json files */ |
||||
|
// "noResolve": true, /* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project. */ |
||||
/* JavaScript Support */ |
/* JavaScript Support */ |
||||
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ |
"allowJs": true, |
||||
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ |
/* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ |
||||
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */ |
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ |
||||
|
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */ |
||||
/* Emit */ |
/* Emit */ |
||||
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ |
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ |
||||
// "declarationMap": true, /* Create sourcemaps for d.ts files. */ |
// "declarationMap": true, /* Create sourcemaps for d.ts files. */ |
||||
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ |
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ |
||||
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */ |
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */ |
||||
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ |
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ |
||||
"outDir": "./built", /* Specify an output folder for all emitted files. */ |
"outDir": "./built", |
||||
// "removeComments": true, /* Disable emitting comments. */ |
/* Specify an output folder for all emitted files. */ |
||||
// "noEmit": true, /* Disable emitting files from a compilation. */ |
// "removeComments": true, /* Disable emitting comments. */ |
||||
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ |
// "noEmit": true, /* Disable emitting files from a compilation. */ |
||||
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */ |
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ |
||||
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ |
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */ |
||||
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ |
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ |
||||
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ |
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ |
||||
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ |
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ |
||||
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ |
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ |
||||
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ |
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ |
||||
// "newLine": "crlf", /* Set the newline character for emitting files. */ |
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ |
||||
// "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */ |
// "newLine": "crlf", /* Set the newline character for emitting files. */ |
||||
// "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */ |
// "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */ |
||||
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ |
// "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */ |
||||
// "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */ |
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ |
||||
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */ |
// "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */ |
||||
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ |
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */ |
||||
|
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ |
||||
/* Interop Constraints */ |
/* Interop Constraints */ |
||||
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ |
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ |
||||
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ |
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ |
||||
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ |
"esModuleInterop": true, |
||||
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ |
/* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ |
||||
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ |
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ |
||||
|
"forceConsistentCasingInFileNames": true, |
||||
/* Type Checking */ |
/* Ensure that casing is correct in imports. */ |
||||
"strict": true, /* Enable all strict type-checking options. */ |
/* Type Checking */ |
||||
"noImplicitAny": false, /* Enable error reporting for expressions and declarations with an implied `any` type.. */ |
"strict": true, |
||||
// "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */ |
/* Enable all strict type-checking options. */ |
||||
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ |
"noImplicitAny": false, |
||||
// "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */ |
/* Enable error reporting for expressions and declarations with an implied `any` type.. */ |
||||
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ |
// "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */ |
||||
// "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */ |
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ |
||||
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */ |
// "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */ |
||||
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ |
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ |
||||
// "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */ |
// "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */ |
||||
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */ |
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */ |
||||
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ |
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ |
||||
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ |
// "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */ |
||||
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ |
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */ |
||||
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ |
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ |
||||
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ |
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ |
||||
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */ |
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ |
||||
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ |
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ |
||||
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ |
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ |
||||
|
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */ |
||||
/* Completeness */ |
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ |
||||
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ |
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ |
||||
"skipLibCheck": true /* Skip type checking all .d.ts files. */ |
/* Completeness */ |
||||
} |
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ |
||||
} |
"skipLibCheck": true |
||||
|
/* Skip type checking all .d.ts files. */ |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue