Skip to content

Commit b2cfe87

Browse files
authored
Slash Commands に対応 (#27)
* feat: Add slash-command * feat: Add commandIntoBody * lint: Remove eslint-disable * refactor: Refactor with commandOptionTypeMap * fix: Move command into abst * feat: Improve definitions * feat: Add DiscordCommand template * deps: Bump dependencies * deps: Add discord.js-slash-command * feat: Add InteractionsCommandReceiver * feat: Enable interactions * fix: Remove unused methods * deps: Use discord.js dev * fix: Fix for dev version * fix: Add intents * fix: Fix for new API * fix: Fix options order * feat: Hard code guild id * fix: Migrate deprecation * ci: Bump node version
1 parent e5c480a commit b2cfe87

File tree

13 files changed

+727
-393
lines changed

13 files changed

+727
-393
lines changed

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v1
1212
- name: Setup Node.js
13-
uses: actions/setup-node@v2-beta
13+
uses: actions/setup-node@v2
1414
with:
15-
node-version: "12"
15+
node-version: "14"
1616
- name: Install dependencies
1717
run: npm install --no-save
1818
- name: Run lint

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v1
1212
- name: Setup Node.js
13-
uses: actions/setup-node@v2-beta
13+
uses: actions/setup-node@v2
1414
with:
15-
node-version: "12"
15+
node-version: "14"
1616
- name: Install dependencies
1717
run: npm install --no-save
1818
- name: Run test

docker/bot.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM node:12.18.4-alpine as BUILD
1+
FROM node:14.17.4-alpine3.14 as BUILD
22

33
COPY . .
44

55
RUN npm install --no-save && npm run build:bot
66

77
# ---
88

9-
FROM node:12.18.4-alpine
9+
FROM node:14.17.4-alpine3.14
1010

1111
RUN addgroup -g 1993 -S bot \
1212
&& adduser -u 1993 -S bot -G bot

docker/web.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.18.1-alpine
1+
FROM node:14.17.4-alpine3.14
22

33
EXPOSE 3000
44

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"lint:fix": "npm run lint -- --fix"
1919
},
2020
"dependencies": {
21-
"discord.js": "^12.5.3",
21+
"discord.js": "^13.0.0-dev.t1627949059.35fa3b3",
2222
"dotenv": "^10.0.0",
2323
"faunadb": "^4.3.0",
2424
"mutex-promise": "^0.1.0",
@@ -30,20 +30,20 @@
3030
},
3131
"devDependencies": {
3232
"@types/jest": "^26.0.24",
33-
"@types/node": "^16.3.3",
34-
"@types/node-fetch": "^2.5.11",
35-
"@types/react": "^17.0.14",
36-
"@typescript-eslint/eslint-plugin": "^4.28.3",
37-
"@typescript-eslint/parser": "^4.28.3",
38-
"esbuild": "^0.12.15",
39-
"eslint": "^7.31.0",
33+
"@types/node": "^16.4.10",
34+
"@types/node-fetch": "^2.5.12",
35+
"@types/react": "^17.0.15",
36+
"@typescript-eslint/eslint-plugin": "^4.29.0",
37+
"@typescript-eslint/parser": "^4.29.0",
38+
"esbuild": "^0.12.17",
39+
"eslint": "^7.32.0",
4040
"eslint-config-next": "^11.0.1",
4141
"eslint-config-prettier": "^8.3.0",
4242
"eslint-plugin-prettier": "^3.4.0",
4343
"eslint-plugin-react": "^7.24.0",
4444
"jest": "^27.0.6",
4545
"prettier": "^2.3.2",
46-
"ts-jest": "^27.0.3",
46+
"ts-jest": "^27.0.4",
4747
"ts-node": "^10.1.0",
4848
"typescript": "^4.3.5"
4949
}

0 commit comments

Comments
 (0)