aboutsummaryrefslogtreecommitdiff
path: root/bot/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/plugins')
-rw-r--r--bot/src/plugins/qotd.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/bot/src/plugins/qotd.js b/bot/src/plugins/qotd.js
index 73882be..33d3bb2 100644
--- a/bot/src/plugins/qotd.js
+++ b/bot/src/plugins/qotd.js
@@ -15,24 +15,24 @@ export function QuoteOfTheDay(client) {
.filter(guild => guild.qotdChannelID)
.map(guild => guild.qotdChannelID);
- const quoteList = await quoteDB.findAll({attributes: ['id']});
+ const quoteList = await quoteDB.findAll({ attributes: ['id'] });
const random = crypto.getRandomValues(new Uint32Array(1));
let quoteID = quoteList[random[0] % quoteList.length].id;
- const quote = await quoteDB.findOne({where: {id: quoteID}});
+ const quote = await quoteDB.findOne({ where: { id: quoteID } });
let userSubmitter = await client.users.fetch(quote.submitter);
const quoteEmbed = new EmbedBuilder()
- .setAuthor({name: quote.author, iconURL: quote.authorImage})
+ .setAuthor({ name: quote.author, iconURL: quote.authorImage })
.setDescription(quote.quote)
.setColor(abEmbedColour)
- .setFooter({text: `- ${quote.year}\nSubmitted by ${userSubmitter.username}`});
+ .setFooter({ text: `- ${quote.year}\nSubmitted by ${userSubmitter.username}` });
for (const channel of channels) {
let qotdChannel = client.channels.cache.get(channel);
- await qotdChannel.send({ content: 'New Quote of the Day!', embeds: [quoteEmbed ]});
+ await qotdChannel.send({ content: 'New Quote of the Day!', embeds: [quoteEmbed ] });
}
});
}