From c5b45aab59d080bbc4254ffb17c3a8c951b58e08 Mon Sep 17 00:00:00 2001 From: EvolutionX Date: Wed, 11 May 2022 09:41:54 +0530 Subject: [PATCH] chore: removed deprecated stuff --- src/prompts/init.js | 48 --------------------------------------------- 1 file changed, 48 deletions(-) diff --git a/src/prompts/init.js b/src/prompts/init.js index 6827465..f13f9c6 100644 --- a/src/prompts/init.js +++ b/src/prompts/init.js @@ -1,26 +1,5 @@ import { blueBright } from 'colorette'; -// TODO refactor the intents stuff and add more questions -const Intents = [ - 'DIRECT_MESSAGES', - 'DIRECT_MESSAGE_REACTIONS', - 'DIRECT_MESSAGE_TYPING', - 'GUILDS', - 'GUILD_BANS', - 'GUILD_EMOJIS_AND_STICKERS', - 'GUILD_INTEGRATIONS', - 'GUILD_INVITES', - 'GUILD_MEMBERS', - 'GUILD_MESSAGES', - 'GUILD_MESSAGE_REACTIONS', - 'GUILD_MESSAGE_TYPING', - 'GUILD_PRESENCES', - 'GUILD_SCHEDULED_EVENTS', - 'GUILD_VOICE_STATES', - 'GUILD_VOICE_STATES', - 'GUILD_WEBHOOKS', -].map((i, j) => ({ title: i, value: j, short: `${j}` })); //! bad way - export const lang = { message: 'What language do you want the project to be in?', name: 'lang', @@ -40,19 +19,6 @@ export const lang = { ], }; -/** - * @deprecated - * ! Will be removed ! - */ -export const intent = { - message: 'What intents do you want to keep?', - type: 'multiselect', - name: 'intents', - choices: Intents, - min: 1, - max: 16, //? 17 is max, i dont allow all -}; - export const default_prefix = { message: 'What is the default prefix for your bot? Type "none" if it is completely Application-Command based', @@ -62,20 +28,6 @@ export const default_prefix = { initial: '!', }; -export const token = { - message: 'What is your bot token? Type "no" to skip', - name: 'token', - type: 'password', - validate: (/** @type {string} */ token) => { - if (token === 'no') return true; - return /(?mfa\.[a-z0-9_-]{20,})|(?[a-z0-9_-]{23,28}\.[a-z0-9_-]{6,7}\.[a-z0-9_-]{27})/i.test( - token - ) - ? true - : 'Invalid token'; - }, -}; - export const main_dir = { message: 'What is the main directory of your project?', name: 'main_dir',