Skip to content

Commit

Permalink
chore: update link updater configuration and dependencies; improve er…
Browse files Browse the repository at this point in the history
…ror logging format
  • Loading branch information
iamvikshan committed Nov 23, 2024
1 parent fdd8294 commit 1ee98e9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 36 deletions.
11 changes: 2 additions & 9 deletions .github/updatelinks.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
paths:
- 'astro'
- 'src'
- '.'
fileTypes:
- 'md'
- 'mdx'
- 'js'
- 'ts'
links:
- old: 'https://github.com/vixshan/mina'
new: 'https://github.com/vixshan/amina'
Expand All @@ -18,3 +9,5 @@ ignore:
- 'https://github.com/saiteja-madha'
- 'https://github.com/lavalink-devs/Lavalink'
- 'https://github.com/Androz2091/discord-invites-tracker'
createPr: true

9 changes: 2 additions & 7 deletions .github/workflows/linkapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: vixshan/[email protected]
with:
fetch-depth: 0 # This ensures we have the full git history

- uses: vixshan/[email protected]
with:
token: ${{ secrets.GH_TOKEN }}
config-path: '.github/updatelinks.yml' # Explicitly set the config path
create-pr: 'true'
token: ${{ secrets.GH_TOKEN }}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"fixedsize-map": "^1.1.0",
"lavalink-client": "^2.4.1",
"moment": "^2.30.1",
"mongoose": "^8.8.1",
"mongoose": "^8.8.2",
"pino": "^9.5.0",
"pino-pretty": "^11.3.0",
"pretty-ms": "^7.0.1",
Expand All @@ -50,16 +50,16 @@
"table": "^6.8.2"
},
"devDependencies": {
"@eslint/js": "^9.14.0",
"@eslint/js": "^9.15.0",
"@types/bun": "^1.1.13",
"@types/node": "^22.9.0",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"eslint": "^9.14.0",
"@types/node": "^22.9.2",
"@typescript-eslint/eslint-plugin": "^8.15.0",
"@typescript-eslint/parser": "^8.15.0",
"eslint": "^9.15.0",
"eslint-plugin-jsdoc": "^50.5.0",
"husky": "^9.1.6",
"husky": "^9.1.7",
"prettier": "3.3.3",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},
"keywords": [
"discord",
Expand Down
15 changes: 3 additions & 12 deletions src/structures/BotClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,7 @@ export class BotClient extends Client {
validateCommand(cmd)
this.loadCommand(cmd)
} catch (ex) {
this.logger.error(
`Failed to load ${file}`,
ex as Error
)
this.logger.error(`Failed to load ${file}`, ex as Error)
}
}

Expand Down Expand Up @@ -200,10 +197,7 @@ export class BotClient extends Client {
}
this.contextMenus.set(ctx.name, ctx)
} catch (ex) {
this.logger.error(
`Failed to load ${file}`,
ex as Error
)
this.logger.error(`Failed to load ${file}`, ex as Error)
}
}

Expand Down Expand Up @@ -266,10 +260,7 @@ export class BotClient extends Client {
}
this.logger.success('Successfully registered interactions')
} catch (error) {
this.logger.error(
'Failed to register interactions',
error as Error
)
this.logger.error('Failed to register interactions', error as Error)
}
}

Expand Down

0 comments on commit 1ee98e9

Please sign in to comment.