Skip to content

Commit

Permalink
badapplerendition fill out missing aliases, add backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Supinic committed Sep 30, 2024
1 parent aa35e15 commit b1af92d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion commands/badapplerendition/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
},
Dynamic_Description: () => {
const subcommandList = subcommands.map(i => {
if (i.aliases.length === 0) {
if (!i.aliases || i.aliases.length === 0) {
return `<code>$bar ${i.name}</code>\n${i.description}`;
}
else {
Expand Down
1 change: 1 addition & 0 deletions commands/badapplerendition/subcommands/random.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
name: "random",
aliases: [],
description: "Rolls a random rendition from the list, and posts its details.",
execute: async () => {
const random = await sb.Query.getRecordset(rs => rs
Expand Down

0 comments on commit b1af92d

Please sign in to comment.