Docker tweaks

This commit is contained in:
Essem 2021-09-13 13:05:22 -05:00
parent a3b617233a
commit 95dc02aed5
No known key found for this signature in database
GPG Key ID: 7D497397CC3A2A8C
3 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,7 @@ COPY --chown=node:node ./package.json package.json
COPY --chown=node:node ./package-lock.json package-lock.json
RUN npm install
COPY . .
RUN rm .env
RUN npm run build
USER esmBot

View File

@ -11,6 +11,7 @@ services:
- ./logs:/home/esmBot/.internal/logs
- ./bot-help:/home/esmBot/help
- ./bot-temp:/home/esmBot/temp
- ./servers.json:/home/esmBot/.internal/servers.json
env_file:
- .env
environment:

View File

@ -70,7 +70,7 @@ const getImage = async (image, image2, video, extraReturnTypes, gifv = false) =>
} else if (giphyMediaURLs.includes(host)) {
payload.path = `https://media0.giphy.com/media/${image2.split("/")[4]}/giphy.gif`;
} else if (imgurURLs.includes(host)) {
// Seems that Tenor has a possibility of making GIFs static
// Seems that Imgur has a possibility of making GIFs static
payload.path = image.replace(".mp4", ".gif");
} else if (gfycatURLs.includes(host)) {
// iirc Gfycat also seems to sometimes make GIFs static