clean up Dockerfile / add intents to discord bot

This commit is contained in:
BuckarooBanzay 2021-10-12 13:06:31 +02:00
parent f1f60d6e96
commit 095ba6a8c5
2 changed files with 6 additions and 13 deletions

View File

@ -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/

View File

@ -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 => {