mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
feat(docs): update README with playback history and instant replay features
refactor(commands): remove unused imports from various command files refactor(src): clean up imports in multiple source files for better organization (#21)
This commit is contained in:
1 parent
e33fbb2fdb
commit
5dc286e364
19 files changed
+32
-39
No files matched your search
@@ -5,7 +5,6 @@
|
||||
|
||||
import { CommandBuilder } from "../src/commands/index.mjs";
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import { getGlobalColor } from "../src/ui/index.mjs";
|
||||
import { logger } from "../src/core/Logger.mjs";
|
||||
|
||||
/** @type {CommandBuilder} @description Command definition for the autoplay command. */
|
||||
|
||||
+8
-1
@@ -9,6 +9,7 @@ import { getGlobalColor } from "../src/ui/index.mjs";
|
||||
import { logger } from "../src/core/Logger.mjs";
|
||||
import { inspect } from "node:util";
|
||||
import { ERROR_COLOR, EMOJI_REMOVE_TIMEOUT } from "../src/utils/UI.mjs";
|
||||
import { collectSecrets, redactSecrets } from "../src/utils/Redact.mjs";
|
||||
|
||||
/** @private @type {string[]} Property name substrings that indicate sensitive/secret data. */
|
||||
const RESTRICTED = [
|
||||
@@ -92,7 +93,7 @@ function removeSensitive(obj, level = 0, visited = new WeakSet()) {
|
||||
* @param {*} value - The raw eval result.
|
||||
* @returns {Promise<string>} The sanitized output string.
|
||||
*/
|
||||
async function clean(value) {
|
||||
async function clean(value, config = null) {
|
||||
if (value instanceof Promise) value = await value;
|
||||
|
||||
if (typeof value === "object" && value !== null) {
|
||||
@@ -108,6 +109,12 @@ async function clean(value) {
|
||||
output = `[Inspection Error]: ${err.message}`;
|
||||
}
|
||||
|
||||
/* Mask all configured secret values */
|
||||
if (config) {
|
||||
const secrets = collectSecrets(config);
|
||||
output = redactSecrets(output, secrets);
|
||||
}
|
||||
|
||||
return output
|
||||
.replace(/`/g, "`\u200b")
|
||||
.replace(/@/g, "@\u200b") || "undefined";
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
import { CommandBuilder } from "../src/commands/index.mjs";
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import { logger } from "../src/core/Logger.mjs";
|
||||
import { getGlobalColor, cleanId } from "../src/ui/index.mjs";
|
||||
import { cleanId } from "../src/ui/index.mjs";
|
||||
|
||||
/** @type {CommandBuilder} @description Command definition for the leave/stop command. */
|
||||
export const command = new CommandBuilder()
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { CommandBuilder } from "../src/commands/index.mjs";
|
||||
import { QueuePaginator, getGlobalColor } from "../src/ui/index.mjs";
|
||||
import { QueuePaginator } from "../src/ui/index.mjs";
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
|
||||
const PAGE_SIZE = 10;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
import { CommandBuilder } from "../src/commands/index.mjs";
|
||||
import { Message, getGlobalColor } from "../src/ui/index.mjs";
|
||||
import { Message } from "../src/ui/index.mjs";
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import { PROVIDER_CHOICES, PROVIDER_NAMES, parseInlineProvider } from "../src/music/providers.mjs";
|
||||
import { NUMBER_EMOJIS, CANCEL_EMOJI } from "../src/utils/UI.mjs";
|
||||
|
||||
@@ -10,12 +10,12 @@ import { cleanId, getMessageGuildId, getGlobalColor } from "../../src/ui/index.m
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import runnables from "../../settings/runnables.mjs";
|
||||
import {
|
||||
parseBool, displayValue, getGuildName, embed, tWrap, prettifySettingLabel,
|
||||
BOOL_SETTINGS, VALID_LOCALES, VOLUME_MIN, VOLUME_MAX, PREFIX_MAX, SHORTCUTS,
|
||||
parseBool, displayValue, embed, tWrap, prettifySettingLabel,
|
||||
BOOL_SETTINGS, VALID_LOCALES, VOLUME_MIN, VOLUME_MAX, PREFIX_MAX,
|
||||
VOTE_SKIP_THRESHOLD_MIN, VOTE_SKIP_THRESHOLD_MAX,
|
||||
} from "./utils.mjs";
|
||||
import {
|
||||
get247Channels, save247Channels, build247Panel, disable247, handle247Toggle,
|
||||
save247Channels, disable247, handle247Toggle,
|
||||
} from "./channels247.mjs";
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user