Removed duplicate type parameter, made image commands use a promisified version of the default toBuffer method

This commit is contained in:
TheEssem 2020-02-25 14:45:47 -06:00
parent 3513245fda
commit 5455b2682c
44 changed files with 104 additions and 174 deletions

View file

@ -19,9 +19,8 @@ const typeCheck = async (image, gifv = false) => {
const path = `/tmp/${Math.random().toString(36).substring(2, 15)}.${imageType.ext}`;
await writeFile(path, imageBuffer);
return {
type: imageType.ext,
data: imageBuffer,
outputType: imageType.ext === "mp4" ? "gif" : imageType.ext,
type: imageType.ext === "mp4" ? "gif" : imageType.ext,
path: path
};
} else {

View file

@ -4,7 +4,7 @@
FROM alpine:edge
RUN apk --no-cache upgrade && apk add --no-cache chromium && apk add --no-cache squid && apk add --no-cache sudo
RUN apk --no-cache upgrade && apk add --no-cache chromium squid sudo
ENV ALL_PROXY "http://localhost:3128"
RUN echo -e "\nvisible_hostname esmBot\nforwarded_for delete\nvia off\nfollow_x_forwarded_for deny all \