Update for docker
parent
2348c87ec1
commit
db70776390
11
dockerfile
11
dockerfile
|
@ -1,18 +1,17 @@
|
||||||
FROM node:16.15.0
|
FROM node:16.15.0
|
||||||
|
|
||||||
# Create the directory!
|
# Create the directory!
|
||||||
RUN mkdir -p /usr/src/bot
|
RUN mkdir -p /usr/hullcss
|
||||||
WORKDIR /usr/src/bot
|
WORKDIR /usr/hullcss
|
||||||
|
|
||||||
# Copy and Install our bot
|
# Copy and Install our bot
|
||||||
COPY package.json /usr/src/bot
|
COPY package.json /usr/hullcss
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Our precious bot
|
# Our precious bot
|
||||||
COPY . /usr/src/bot
|
COPY . /usr/hullcss
|
||||||
|
|
||||||
# Start me!
|
# Start me!
|
||||||
EXPOSE 5001
|
EXPOSE 5002
|
||||||
VOLUME ["latest"]
|
VOLUME ["latest"]
|
||||||
HEALTHCHECK --interval=60s --timeout=30s --start-period=180s --retries=5 CMD node extra/healthcheck.js
|
|
||||||
CMD ["node", "index.js"]
|
CMD ["node", "index.js"]
|
|
@ -5,12 +5,12 @@ client.on("messageCreate", async (message) => {
|
||||||
if (
|
if (
|
||||||
message.author.bot ||
|
message.author.bot ||
|
||||||
!message.guild ||
|
!message.guild ||
|
||||||
!message.content.toLowerCase().startsWith(config.prefix)
|
!message.content.toLowerCase().startsWith(process.env.PREFIX)
|
||||||
)
|
)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const [cmd, ...args] = message.content
|
const [cmd, ...args] = message.content
|
||||||
.slice(config.prefix.length)
|
.slice(process.env.PREFIX.length)
|
||||||
.trim()
|
.trim()
|
||||||
.split(/ +/g);
|
.split(/ +/g);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue