clean up Dockerfile / add intents to discord bot
This commit is contained in:
parent
f1f60d6e96
commit
095ba6a8c5
12
Dockerfile
12
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
|
FROM node:16.11.0-alpine
|
||||||
|
|
||||||
COPY package.json /data/
|
COPY package.json /data/
|
||||||
|
@ -6,7 +6,12 @@ module.exports = class {
|
|||||||
}
|
}
|
||||||
init(remote, events){
|
init(remote, events){
|
||||||
this.client = new Discord.Client({
|
this.client = new Discord.Client({
|
||||||
autoReconnect: true
|
autoReconnect: true,
|
||||||
|
intents: [
|
||||||
|
"DIRECT_MESSAGES",
|
||||||
|
"DIRECT_MESSAGE_REACTIONS",
|
||||||
|
"GUILD_MESSAGES"
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
this.client.on('ready', e => {
|
this.client.on('ready', e => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user