From 48d906bfd8fade21c13e73ea703ecb699a19c533 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 30 Mar 2025 17:39:45 -0400 Subject: More eslint styling --- bot/src/plugins/qotd.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bot/src/plugins') 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 ] }); } }); } -- cgit v1.2.3