diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-30 17:39:45 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-30 17:39:45 -0400 |
| commit | 48d906bfd8fade21c13e73ea703ecb699a19c533 (patch) | |
| tree | 8551fd01f1cc146d1f2d5d3afaa75b257e833060 /bot/src/plugins | |
| parent | d37cc8c56cbf8c9ffe7023c671abe0d579ea875d (diff) | |
| download | AleeBot-48d906bfd8fade21c13e73ea703ecb699a19c533.tar.gz AleeBot-48d906bfd8fade21c13e73ea703ecb699a19c533.tar.bz2 AleeBot-48d906bfd8fade21c13e73ea703ecb699a19c533.zip | |
More eslint styling
Diffstat (limited to 'bot/src/plugins')
| -rw-r--r-- | bot/src/plugins/qotd.js | 10 |
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 ] }); } }); } |
