Skip to content

Commit

Permalink
fix some stuff
Browse files Browse the repository at this point in the history
no idea
  • Loading branch information
calico32 committed Jan 29, 2024
1 parent 418c475 commit 295aabc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"plugin:import/recommended",
"plugin:import/typescript"
],
"ignorePatterns": ["dist/*", "types/gamerbot.d.ts", "scripts/*", "data/*"],
"ignorePatterns": ["dist/*", "types/gamerbot.d.ts", "scripts/*", "data/*", "test/*"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ yarn-error.log*
/example/storage

/logs

/test
9 changes: 5 additions & 4 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ const options = {
assets: './dist/**',
},
release: releaseName,
finalize: true,
deploy: {
env: argv.production ? 'production' : 'development',
},

// finalize: true,
// deploy: {
// env: argv.production ? 'production' : 'development',
// },
}),
].filter(Boolean),
}
Expand Down
1 change: 0 additions & 1 deletion src/client/extensions/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export default class DeployExtension extends ClientExtension {
})
)

// @ts-expect-error
commands = _.sortBy(commands, 'name')

let existing = [...(await commandManager.fetch({})).values()].map((c) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/commands/utility/timestamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const COMMAND_TIMESTAMP = command(ApplicationCommandType.ChatInput, {
description: `${getDateStringFromSnowflake(id).join('; ')}\n${time(seconds, 'F')}`,
})

embed.setFooter({ text: date.toISO({ includeOffset: true }) })
embed.setFooter({ text: date.toISO({ includeOffset: true })! })

await interaction.reply({ embeds: [embed] })

Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"exclude": ["node_modules", "**/node_modules/*", "types/gamerbot.d.ts"],
"include": ["src", "scripts", "types", "lib", "src/types/*.d.ts", "scripts"],
"include": ["src", "scripts", "types", "lib", "src/types/*.d.ts", "scripts", "test"],
"compilerOptions": {
"checkJs": true,
"module": "esnext",
Expand All @@ -12,10 +12,11 @@
"resolveJsonModule": true,
"useUnknownInCatchVariables": false,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "nodenext",
"moduleResolution": "bundler",
"esModuleInterop": true,
"sourceMap": true,
"skipDefaultLibCheck": true,
"downlevelIteration": true,
"skipLibCheck": true,
"declaration": true,
"baseUrl": "gamerbot",
Expand Down

0 comments on commit 295aabc

Please sign in to comment.