From e81f52e572a3a6545034a22346a14393da1a5604 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Sat, 30 Jul 2022 15:59:19 +0200 Subject: [PATCH] Other color and more pingi --- lib/commands/definitions.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 \\ /| \\ \\/ / ",