mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
little changes
This commit is contained in:
1 parent
862f326996
commit
b7252fccaf
41 files changed
+261
-228
No files matched your search
@@ -6,6 +6,7 @@
|
||||
import { CommandBuilder } from "../src/CommandHandler.mjs";
|
||||
import { EmbedBuilder } from "@fluxerjs/core";
|
||||
import { getGlobalColor } from "../src/MessageHandler.mjs";
|
||||
import { logger } from "../src/constants/Logger.mjs";
|
||||
|
||||
export const command = new CommandBuilder()
|
||||
.setName("autoplay")
|
||||
@@ -50,7 +51,7 @@ export async function run(msg, data) {
|
||||
const pick = similar[Math.floor(Math.random() * Math.min(3, similar.length))];
|
||||
query = `${pick.name} ${pick.artist}`.trim();
|
||||
}
|
||||
} catch(e) { }
|
||||
} catch(e) { logger.warn("[Autoplay] Error:", e?.message); }
|
||||
}
|
||||
|
||||
if (!query) {
|
||||
|
||||
Reference in new issue
Block a user