diff --git a/lib/commands/definitions.ts b/lib/commands/definitions.ts index 8572b07..fe45e1f 100644 --- a/lib/commands/definitions.ts +++ b/lib/commands/definitions.ts @@ -284,8 +284,10 @@ const color: Command = { switch(true) { case color.hex().toLowerCase() === "#1f1e33": { - if (cmdIf.callbacks?.setModalHTML) cmdIf.callbacks?.setModalHTML(''); - if (cmdIf.callbacks?.setModalVisible) cmdIf.callbacks?.setModalVisible(true); + if (cmdIf.callbacks?.setModalHTML && cmdIf.callbacks?.setModalVisible) { + cmdIf.callbacks?.setModalHTML(''); + cmdIf.callbacks?.setModalVisible(true); + } break; } } @@ -340,7 +342,11 @@ const save: Command = { const pingi: Command = { name: "pingi", desc: "<3", - execute: () => { + execute: (_flags, _args, _raw, cmdIf) => { + if (cmdIf.callbacks?.setModalHTML && cmdIf.callbacks.setModalVisible) { + cmdIf.callbacks.setModalHTML(''); + cmdIf.callbacks.setModalVisible(true); + } return ["<3"]; }, hidden: true @@ -350,7 +356,7 @@ const blahaj: Command = { name: "blahaj", desc: "Blahaj is the best.", execute: () => { - setColors(Color("#88a7b9")); + setColors(Color("#417988")); return [" _________ . .", "(.. \\_ , |\\ /|", " \\ O \\ /| \\ \\/ / ",