Skip to content

Commit

Permalink
Slash Commands に対応 (#27)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
MikuroXina authored Aug 3, 2021
1 parent e5c480a commit b2cfe87
Show file tree
Hide file tree
Showing 13 changed files with 727 additions and 393 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v2
with:
node-version: "12"
node-version: "14"
- name: Install dependencies
run: npm install --no-save
- name: Run lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v2
with:
node-version: "12"
node-version: "14"
- name: Install dependencies
run: npm install --no-save
- name: Run test
Expand Down
4 changes: 2 additions & 2 deletions docker/bot.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:12.18.4-alpine as BUILD
FROM node:14.17.4-alpine3.14 as BUILD

COPY . .

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

# ---

FROM node:12.18.4-alpine
FROM node:14.17.4-alpine3.14

RUN addgroup -g 1993 -S bot \
&& adduser -u 1993 -S bot -G bot
Expand Down
2 changes: 1 addition & 1 deletion docker/web.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12.18.1-alpine
FROM node:14.17.4-alpine3.14

EXPOSE 3000

Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lint:fix": "npm run lint -- --fix"
},
"dependencies": {
"discord.js": "^12.5.3",
"discord.js": "^13.0.0-dev.t1627949059.35fa3b3",
"dotenv": "^10.0.0",
"faunadb": "^4.3.0",
"mutex-promise": "^0.1.0",
Expand All @@ -30,20 +30,20 @@
},
"devDependencies": {
"@types/jest": "^26.0.24",
"@types/node": "^16.3.3",
"@types/node-fetch": "^2.5.11",
"@types/react": "^17.0.14",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"esbuild": "^0.12.15",
"eslint": "^7.31.0",
"@types/node": "^16.4.10",
"@types/node-fetch": "^2.5.12",
"@types/react": "^17.0.15",
"@typescript-eslint/eslint-plugin": "^4.29.0",
"@typescript-eslint/parser": "^4.29.0",
"esbuild": "^0.12.17",
"eslint": "^7.32.0",
"eslint-config-next": "^11.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"jest": "^27.0.6",
"prettier": "^2.3.2",
"ts-jest": "^27.0.3",
"ts-jest": "^27.0.4",
"ts-node": "^10.1.0",
"typescript": "^4.3.5"
}
Expand Down
Loading

0 comments on commit b2cfe87

Please sign in to comment.