diff --git a/Dockerfile b/Dockerfile index 71a55fa..676d641 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,3 @@ -# Stage 1 testing -FROM node:16.11.0-alpine - -COPY package.json /data/ -COPY package-lock.json /data/ -COPY .jshintrc /data/ -COPY src /data/src - -RUN cd /data && npm i && npm test - - -# Stage 2 package FROM node:16.11.0-alpine COPY package.json /data/ diff --git a/src/handler/discord.js b/src/handler/discord.js index 861343e..40688af 100644 --- a/src/handler/discord.js +++ b/src/handler/discord.js @@ -6,7 +6,12 @@ module.exports = class { } init(remote, events){ this.client = new Discord.Client({ - autoReconnect: true + autoReconnect: true, + intents: [ + "DIRECT_MESSAGES", + "DIRECT_MESSAGE_REACTIONS", + "GUILD_MESSAGES" + ] }); this.client.on('ready', e => {