codePreviews: how
This commit is contained in:
parent
2455486a4f
commit
5cdefd4ab6
1 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@ events.add("messageCreate", "codePreviews", async function (msg) {
|
||||||
}
|
}
|
||||||
for (let i = 0; i < files.length; i++) {
|
for (let i = 0; i < files.length; i++) {
|
||||||
const file = files[i];
|
const file = files[i];
|
||||||
if (file === "") continue;
|
if (file == "") continue;
|
||||||
|
|
||||||
if (out.length + file.length > 2000) {
|
if (out.length + file.length > 2000) {
|
||||||
await msg.channel.createMessage({
|
await msg.channel.createMessage({
|
||||||
|
@ -186,7 +186,7 @@ events.add("messageCreate", "codePreviews", async function (msg) {
|
||||||
out = out.trim();
|
out = out.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == files.length - 1 && out.length <= 2000) {
|
if (i == files.length - 1 && out.length <= 2000 && out != "") {
|
||||||
await msg.channel.createMessage({
|
await msg.channel.createMessage({
|
||||||
content: out,
|
content: out,
|
||||||
allowedMentions: {
|
allowedMentions: {
|
||||||
|
|
Loading…
Reference in a new issue