Skip to content

Commit

Permalink
discordjs 14 bump (#721)
Browse files Browse the repository at this point in the history
* Typos and fix version deprecations

* typos and type migrations

* typos and type migrations

* typos and type migrations

* Fix final missmatches

* Fix typos and snake cases

* Fix typos and snake cases

* Fix typos and snake cases

* Update snake to cammel case

* Updated lint rules

* Update command resolver

* Refactor code to new promise style

* Fix last minor type errors

* Fix wrong command names

* Update minor errors with design and implementation

* Update command handler to handle slash commands

* Update command implementation to receive interaction instead of message

* Update command commands to interaction from message

* lint

* Update reply to interaction that has vanished bug fix

* Fully functional help with interaction

* Update most commands with options

* Fix member hanndling

* Minor updates

* Update portal movement to async-await

* Update portal movement to async-await

* Update portal movement to async-await

* Update portal movement to async-await

* Fix template string without variable

* Move from momentjs to datejs

* Fix gif on messages typo

* Update commands to new slash commands
  • Loading branch information
keybraker authored Aug 8, 2023
1 parent 00569e3 commit 02c3b24
Show file tree
Hide file tree
Showing 165 changed files with 28,260 additions and 31,838 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
build
41 changes: 41 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": "**/*.d.ts",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"jsx": false,
"experimentalObjectRestSpread": false
}
},
"env": {
"node": true,
"jest": true,
"commonjs": true,
"mongo": true
},
"rules": {
"no-console": 1,
"indent": ["error", 2],
"global-require": ["error"],
"handle-callback-err": ["error"],
"quotes": ["error", "single", {
"allowTemplateLiterals": true
}],
"no-template-curly-in-string": ["error"],
"no-restricted-syntax": [
"error",
{
"selector": "TemplateLiteral:not([quasis.length > 1])",
"message": "Template literals with a single expression should use string concatenation instead"
}
]
}
}
110 changes: 0 additions & 110 deletions .eslintrc.json

This file was deleted.

106 changes: 53 additions & 53 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "03:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: "@types/node"
versions:
- 14.14.37
- 14.14.39
- 14.14.41
- 15.0.0
- dependency-name: mongoose
versions:
- 5.12.2
- 5.12.3
- 5.12.5
- dependency-name: "@typescript-eslint/parser"
versions:
- 4.21.0
- 4.22.0
- dependency-name: "@typescript-eslint/eslint-plugin"
versions:
- 4.21.0
- 4.22.0
- dependency-name: eslint
versions:
- 7.23.0
- 7.24.0
- dependency-name: cheerio
versions:
- 1.0.0-rc.6
- dependency-name: typescript
versions:
- 4.2.4
- dependency-name: "@types/node-fetch"
versions:
- 2.5.10
- 2.5.9
- dependency-name: discord.js
versions:
- 12.5.2
- 12.5.3
- dependency-name: "@types/ws"
versions:
- 7.4.1
- dependency-name: ffmpeg-static
versions:
- 4.3.0
- dependency-name: yt-search
versions:
- 2.7.6
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
time: '03:00'
open-pull-requests-limit: 10
ignore:
- dependency-name: '@types/node'
versions:
- 14.14.37
- 14.14.39
- 14.14.41
- 15.0.0
- dependency-name: mongoose
versions:
- 5.12.2
- 5.12.3
- 5.12.5
- dependency-name: '@typescript-eslint/parser'
versions:
- 4.21.0
- 4.22.0
- dependency-name: '@typescript-eslint/eslint-plugin'
versions:
- 4.21.0
- 4.22.0
- dependency-name: eslint
versions:
- 7.23.0
- 7.24.0
- dependency-name: cheerio
versions:
- 1.0.0-rc.6
- dependency-name: typescript
versions:
- 4.2.4
- dependency-name: '@types/node-fetch'
versions:
- 2.5.10
- 2.5.9
- dependency-name: discord.js
versions:
- 12.5.2
- 12.5.3
- dependency-name: '@types/ws'
versions:
- 7.4.1
- dependency-name: ffmpeg-static
versions:
- 4.3.0
- dependency-name: yt-search
versions:
- 2.7.6
11 changes: 0 additions & 11 deletions .github/workflows/commitlint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v1
with:
node-version: "14"
node-version: '14'
check-latest: true
- run: npm install
- run: npm ci
Expand Down
13 changes: 6 additions & 7 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module.exports = {
semi: true,
trailingComma: "es5",
singleQuote: true,
printWidth: 120,
tabWidth: 4,
useTabs: false
};
semi: true,
singleQuote: true,
printWidth: 120,
tabWidth: 2,
useTabs: false,
};
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"compile-hero.disable-compile-files-on-did-save-code": true
}
"compile-hero.disable-compile-files-on-did-save-code": true,
"git-blame.gitWebUrl": ""
}
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.9"
version: '3.9'

services:
portal:
Expand Down Expand Up @@ -26,9 +26,9 @@ services:
restart: always
image: mongo:5.0
logging:
driver: "none"
driver: 'none'
ports:
- "27017:27017"
- '27017:27017'
volumes:
- type: bind
source: ../mongo/data/db
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:17
FROM node:18

# Create app directory
RUN mkdir -p /usr/src/portal
Expand Down
Loading

0 comments on commit 02c3b24

Please sign in to comment.