Skip to content

Commit 6fe349d

Browse files
committed
yes dynamic image yes
1 parent 2d84b55 commit 6fe349d

File tree

4 files changed

+36
-25
lines changed

4 files changed

+36
-25
lines changed

commands/addQuestion.js

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const readline = require("readline");
1414
const fs = require("fs");
1515
const { cpuUsage } = require("process");
1616

17-
1817
module.exports = {
1918
name: "addfaq",
2019
description: "Creates a FAQ Q&A",
@@ -24,6 +23,10 @@ module.exports = {
2423
.addField(
2524
"Enter your question, then send that",
2625
"Then after that, send your answer. It will be 2 messages"
26+
)
27+
.setFooter(
28+
"Requested by " + message.author.username,
29+
message.author.displayAvatarURL({ format: "gif", dynamic: "true" })
2730
);
2831
message.channel.send(embedcollecttrigger);
2932
message.channel
@@ -32,29 +35,37 @@ module.exports = {
3235
time: 60000000,
3336
})
3437
.then((collected) => {
35-
if ((message.member.hasPermission("ADMINISTRATOR", "MANAGE_SERVER", "KICK_MEMBERS"))) {
36-
38+
if (
39+
message.member.hasPermission(
40+
"ADMINISTRATOR",
41+
"MANAGE_SERVER",
42+
"KICK_MEMBERS"
43+
)
44+
) {
3745
function makeid(length) {
38-
var result = '';
39-
var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
46+
var result = "";
47+
var characters =
48+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
4049
var charactersLength = characters.length;
41-
for ( var i = 0; i < length; i++ ) {
42-
result += characters.charAt(Math.floor(Math.random() * charactersLength));
50+
for (var i = 0; i < length; i++) {
51+
result += characters.charAt(
52+
Math.floor(Math.random() * charactersLength)
53+
);
4354
}
4455
return result;
45-
}
46-
var ID;
47-
ID = makeid(5);
48-
56+
}
57+
var ID;
58+
ID = makeid(5);
59+
4960
function sendFAQChannel() {
50-
let channel = client.channels.cache.get("701517404659777666")
61+
let channel = client.channels.cache.get("701517404659777666");
5162
let faqqanda = new MessageEmbed()
52-
.setColor("#ff9100")
53-
.addField(myEnmap.faqs.observe(ID), ID);
54-
client.channels.cache.get('701517404659777666');
55-
channel.send(faqqanda);
63+
.setColor("#ff9100")
64+
.addField(myEnmap.faqs.observe(ID), ID);
65+
client.channels.cache.get("701517404659777666");
66+
channel.send(faqqanda);
5667
}
57-
myEnmap.faqs.fetchAll
68+
myEnmap.faqs.fetchAll;
5869
myEnmap.faqs.set(ID, [
5970
"Question: ",
6071
collected.first().content,

commands/battleHacks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ module.exports = {
6868
)
6969
.setFooter(
7070
"Requested by " + message.author.username,
71-
message.author.displayAvatarURL()
72-
);
71+
message.author.displayAvatarURL({ format: "gif", dynamic: "true"})
72+
)
7373
message.channel.send(embed);
7474
}
7575
};

commands/deleteFAQ.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ module.exports = {
2525
.addField("FAQ " + args, "Was deleted.")
2626
.setFooter(
2727
"Requested by " + message.author.username,
28-
message.author.displayAvatarURL()
29-
);
28+
message.author.displayAvatarURL({ format: "gif", dynamic: "true"})
29+
)
3030
message.channel.send(embeddelete);
3131
} else {
3232
let embeddeleteabort = new MessageEmbed()
@@ -37,8 +37,8 @@ module.exports = {
3737
)
3838
.setFooter(
3939
"Requested by " + message.author.username,
40-
message.author.displayAvatarURL()
41-
);
40+
message.author.displayAvatarURL({ format: "gif", dynamic: "true"})
41+
)
4242
message.channel.send(embeddeleteabort);
4343
}
4444
},

commands/help.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ module.exports = {
1515
.addField("battle", "Lists all battle hacks.", true)
1616
.setFooter(
1717
"Requested by " + message.author.username,
18-
message.author.displayAvatarURL()
19-
);
18+
message.author.displayAvatarURL({ format: "gif", dynamic: "true"})
19+
)
2020
message.channel.send(embed);
2121
},
2222
};

0 commit comments

Comments
 (0)