From 12a425c3fc3f5db4b890b72ea5141238b689dc75 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 16 Feb 2026 16:26:45 +0000 Subject: [PATCH] V4 --- bot.log | 67 +++++--------------------------------------------------- index.js | 3 ++- 2 files changed, 8 insertions(+), 62 deletions(-) diff --git a/bot.log b/bot.log index 2e6d7c5..98560cb 100644 --- a/bot.log +++ b/bot.log @@ -1,61 +1,6 @@ -Interaction Error: DiscordAPIError[10062]: Unknown interaction - at handleErrors (/home/ubuntu/executor/workspace/node_modules/@discordjs/rest/dist/index.js:762:13) - at process.processTicksAndRejections (node:internal/process/task_queues:105:5) - at async BurstHandler.runRequest (/home/ubuntu/executor/workspace/node_modules/@discordjs/rest/dist/index.js:866:23) - at async _REST.request (/home/ubuntu/execVoice Connection Error: Error: No compatible encryption modes. Available include: aead_aes256_gcm_rtpsize, aead_xchacha20_poly1305_rtpsize - at chooseEncryptionMode (/home/ubuntu/executor/workspace/node_modules/@discordjs/voice/dist/index.js:529:11) - at /home/ubuntu/executor/workspace/node_modules/@discordjs/voice/dist/index.js:721:21 -Voice Connection Error: Error: No compatible encryption modes. Available include: aead_aes256_gcm_rtpsize, aead_xchacha20_poly1305_rtpsize - at chooseEncryptionMode (/home/ubuntu/executor/workspace/node_modules/@discordjs/voice/dist/index.js:529:11) - at /home/ubuntu/executor/workspace/node_modules/@discordjs/voice/dist/index.js:721:21 -3FlamhRYVdlaEt0dVlYRVI5bUNCMVM3bnNmUjZhbDBqZk1RdEhrYXB5R3p6VWZsbUNwQUl6RURGa3hkWEwzaw/callback?with_response=false' -} -(node:7629) Warning: Supplying "ephemeral" for interaction response options is deprecated. Utilize flags instead. -(Use `node --trace-warnings ...` to show where the warning was created) -node:events:496 - throw er; // Unhandled 'error' event - ^ - -DiscordAPIError[10062]: Unknown interaction - at handleErrors (/home/ubuntu/executor/workspace/node_modules/@discordjs/rest/dist/index.js:762:13) - at process.processTicksAndRejections (node:internal/process/task_queues:105:5) - at async BurstHandler.runRequest (/home/ubuntu/executor/workspace/node_modules/@discordjs/rest/dist/index.js:866:23) - at async _REST.request (/home/ubuntu/executor/workspace/node_modules/@discordjs/rest/dist/index.js:1307:22) - at async ChatInputCommandInteraction.reply (/home/ubuntu/executor/workspace/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:193:22) - at async Client. (/home/ubuntu/executor/workspace/index.js:156:9) -Emitted 'error' event on Client instance at: - at emitUnhandledRejectionOrErr (node:events:401:10) - at process.processTicksAndRejections (node:internal/process/task_queues:92:21) { - requestBody: { - files: [], - json: { - type: 4, - data: { - content: '🔊 Memutar audio Sahur!', - tts: false, - nonce: undefined, - enforce_nonce: false, - embeds: undefined, - components: undefined, - username: undefined, - avatar_url: undefined, - allowed_mentions: undefined, - flags: undefined, - message_reference: undefined, - attachments: undefined, - sticker_ids: undefined, - thread_name: undefined, - applied_tags: undefined, - poll: undefined - } - } - }, - rawError: { message: 'Unknown interaction', code: 10062 }, - code: 10062, - status: 404, - method: 'POST', - url: 'https://discord.com/api/v10/interactions/1472990887029248135/aW50ZXJhY3Rpb246MTQ3Mjk5MDg4NzAyOTI0ODEzNTp2V1dQTFpXN3IybjBtYmZNcjJxaW5qZnlBR1RQdVpKelhnYjdiRUtWQmI1YW9IbXpZS25WVzQzVVpEWVpSa2hVY3FlamhRYVdlaEt0dVlYRVI5bUNCMVM3bnNmUjZhbDBqZk1RdEhrYXB5R3p6VWZsbUNwQUl6RURGa3hkWEwzaw/callback?with_response=false' -} - -Node.js v22.18.0 -ode.js v22.18.0 +Bot starting... +Logged in as AsepXiaoQin#6954 +Started refreshing application (/) commands. +(node:8584) DeprecationWarning: The ready event has been renamed to clientReady to distinguish it from the gateway READY event and will only emit under that name in v15. Please use clientReady instead. +(Use `node --trace-deprecation ...` to show where the warning was created) +Successfully reloaded application (/) commands. diff --git a/index.js b/index.js index b127df3..cc68599 100644 --- a/index.js +++ b/index.js @@ -191,7 +191,8 @@ setInterval(() => { joinVC(lastVoice.guildId, lastVoice.channelId); const audioPath = path.join(__dirname, 'assets/audio/sahur.mp3'); if (fs.existsSync(audioPath)) { - const resource = createAudioResource(audioPath); + const resource = createAudioResource(audioPath, { inlineVolume: true }); + resource.volume.setVolume(1.0); player.play(resource); } } catch (e) {