diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-08 00:11:03 -0500 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-08 00:11:03 -0500 |
| commit | 52f8826e526f0c0aadb86c3e29975aef4dc1ab85 (patch) | |
| tree | 910308d13df0e139dd18eb10fcbb92c014d9caef /bot/src/commands/quote.js | |
| parent | c921e5cf8862def58029bd1801074c51113f86ae (diff) | |
| download | AleeBot-52f8826e526f0c0aadb86c3e29975aef4dc1ab85.tar.gz AleeBot-52f8826e526f0c0aadb86c3e29975aef4dc1ab85.tar.bz2 AleeBot-52f8826e526f0c0aadb86c3e29975aef4dc1ab85.zip | |
Bulk delete message event; Guild suggestions; sinfo + uinfo
Diffstat (limited to 'bot/src/commands/quote.js')
| -rw-r--r-- | bot/src/commands/quote.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/src/commands/quote.js b/bot/src/commands/quote.js index 3ae1de3..5e5ae5b 100644 --- a/bot/src/commands/quote.js +++ b/bot/src/commands/quote.js @@ -110,6 +110,8 @@ export default { if (!quoteID) { const quoteList = await quoteDB.findAll({ attributes: ['id'] }); const random = crypto.getRandomValues(new Uint32Array(1)); + + if (quoteList.length === 0) return await interaction.reply({ content: 'No quotes are currently in the database. You can add one by doing `/quote add`.', flags: MessageFlags.Ephemeral }); quoteID = quoteList[random[0] % quoteList.length].id; } |
