From d0c9ed427a504d61d511094f17f0f0e2975e78a7 Mon Sep 17 00:00:00 2001 From: Leref <12578483+Leref@users.noreply.github.com> Date: Wed, 27 Sep 2023 12:49:54 -0400 Subject: [PATCH] bot.status will prevent startup if wrong method. --- src/handler/status.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/handler/status.js b/src/handler/status.js index 4a424783a..952ee0b8f 100644 --- a/src/handler/status.js +++ b/src/handler/status.js @@ -1,7 +1,3 @@ -const createCustomBoxedMessage = require('../utils/CustomBox.js'); - -let recommendationLogged = false; - module.exports = async (statuses, client) => { if (statuses.size !== 0) { let y = 0; @@ -35,16 +31,7 @@ module.exports = async (statuses, client) => { stats.activity.name = status[y].activity.name; } } else { - if (!recommendationLogged) { - const recommendationMessage = `Use the name method or provide a name for status[${y}]`; - createCustomBoxedMessage([{ text: recommendationMessage, textColor: 'red' }], 'white', { - text: 'AoiWarning', - textColor: 'yellow', - }) - recommendationLogged = true; - } - - stats.activity.name = "Using aoi.js"; + throw new TypeError(`Use the name method or provide a name for status[${y}]`); } client.user.setPresence({