Store directory size cache inside eris-fleet central store
This commit is contained in:
parent
ffa22852bc
commit
1713387ffd
4 changed files with 14 additions and 11 deletions
|
@ -40,7 +40,7 @@ export default async (client, cluster, worker, ipc, interaction) => {
|
|||
}
|
||||
if (result.file.length > fileSize) {
|
||||
if (process.env.TEMPDIR && process.env.TEMPDIR !== "") {
|
||||
await upload(client, result, interaction, true);
|
||||
await upload(client, ipc, result, interaction, true);
|
||||
} else {
|
||||
await interaction[replyMethod]("The resulting image was more than 8MB in size, so I can't upload it.");
|
||||
}
|
||||
|
|
|
@ -129,7 +129,7 @@ export default async (client, cluster, worker, ipc, message) => {
|
|||
}
|
||||
if (result.file.length > fileSize) {
|
||||
if (process.env.TEMPDIR && process.env.TEMPDIR !== "") {
|
||||
await upload(client, result, message);
|
||||
await upload(client, ipc, result, message);
|
||||
} else {
|
||||
await client.createMessage(message.channel.id, "The resulting image was more than 8MB in size, so I can't upload it.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue