<commit_before>const LocalizedPrompt = require('./utils/LocalizedPrompt.js')
const Translator = require('../../../structs/Translator.js')

/**
 * @typedef {Object} Data
 * @property {import('../../../structs/db/Profile.js')} [profile]
 * @property {import('../../../structs/db/Feed.js')[]} feeds
 */

/**
 * @param {Data} data
 */
function noFeedsFoundVisual (data) {
  const { locale } = data.profile || {}
  return {
    text: Translator.translate('structs.FeedSelector.noFeeds', locale)
  }
}

const prompt = new LocalizedPrompt(noFeedsFoundVisual)

exports.prompt = prompt<commit_msg>Fix broken menu commands when no feeds<commit_after>const LocalizedPrompt = require('./utils/LocalizedPrompt.js')
const Translator = require('../../../structs/Translator.js')
const { MessageVisual } = require('discord.js-prompts')
/**
 * @typedef {Object} Data
 * @property {import('../../../structs/db/Profile.js')} [profile]
 * @property {import('../../../structs/db/Feed.js')[]} feeds
 */

/**
 * @param {Data} data
 */
function noFeedsFoundVisual (data) {
  const { locale } = data.profile || {}
  return new MessageVisual(Translator.translate('structs.FeedSelector.noFeeds', locale))
}

const prompt = new LocalizedPrompt(noFeedsFoundVisual)

exports.prompt = prompt
{'fraction_non_alphanumeric': 0.1938046068308181, 'fraction_numerical': 0.0, 'mean_word_length': 4.04, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2968933', 'n_tokens_mistral': 410, 'n_tokens_neox': 397, 'n_words': 76}