V8+
This commit is contained in:
parent
49dd9b22df
commit
4c686cdfef
151
bot/bot.log
151
bot/bot.log
@ -240,3 +240,154 @@ Ready! Logged in as AsepXiaoQin#6954
|
||||
FFMPEG Path: /home/ubuntu/executor/workspace/bot/node_modules/ffmpeg-static/ffmpeg
|
||||
[2026-02-16T08:08:30.810Z] Alarm scheduled at 30 3 * * *
|
||||
Alarm scheduled at 30 3 * * *
|
||||
[2026-02-16T08:12:44.247Z] Playing local file independently: /home/ubuntu/executor/workspace/bot/assets/audio/sahur.mp3
|
||||
Playing local file independently: /home/ubuntu/executor/workspace/bot/assets/audio/sahur.mp3
|
||||
[2026-02-16T08:13:47.227Z] Fetching stream via DisTube for: bawa dia kembali
|
||||
Fetching stream via DisTube for: bawa dia kembali
|
||||
[2026-02-16T08:14:09.517Z] Interaction Error (skip): There is no playing queue in this guild
|
||||
Interaction Error (skip): There is no playing queue in this guild
|
||||
(node:85527) Warning: Supplying "ephemeral" for interaction response options is deprecated. Utilize flags instead.
|
||||
(Use `node --trace-warnings ...` to show where the warning was created)
|
||||
[2026-02-16T08:14:20.609Z] Interaction Error (pause): There is no playing queue in this guild
|
||||
Interaction Error (pause): There is no playing queue in this guild
|
||||
[2026-02-16T08:14:55.078Z] Fetching stream via DisTube for: https://youtu.be/aFh6p6Yo_6Y?si=UyXD8ZUhJE_oSX1_
|
||||
Fetching stream via DisTube for: https://youtu.be/aFh6p6Yo_6Y?si=UyXD8ZUhJE_oSX1_
|
||||
SyntaxError: Unexpected token 'D', "Deprecated"... is not valid JSON
|
||||
at JSON.parse (<anonymous>)
|
||||
at ChildProcess.<anonymous> (/home/ubuntu/executor/workspace/bot/node_modules/@distube/yt-dlp/dist/index.js:84:36)
|
||||
at ChildProcess.emit (node:events:518:28)
|
||||
at maybeClose (node:internal/child_process:1101:16)
|
||||
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
|
||||
[2026-02-16T08:15:02.578Z] Uncaught Exception: Unexpected token 'D', "Deprecated"... is not valid JSON
|
||||
Uncaught Exception: Unexpected token 'D', "Deprecated"... is not valid JSON
|
||||
SyntaxError: Unexpected token 'D', "Deprecated"... is not valid JSON
|
||||
at JSON.parse (<anonymous>)
|
||||
at ChildProcess.<anonymous> (/home/ubuntu/executor/workspace/bot/node_modules/@distube/yt-dlp/dist/index.js:84:36)
|
||||
at ChildProcess.emit (node:events:518:28)
|
||||
at maybeClose (node:internal/child_process:1101:16)
|
||||
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
|
||||
[2026-02-16T08:17:04.076Z] Playing local file independently: /home/ubuntu/executor/workspace/bot/assets/audio/sahur.mp3
|
||||
Playing local file independently: /home/ubuntu/executor/workspace/bot/assets/audio/sahur.mp3
|
||||
[dotenv@17.3.1] injecting env (4) from .env -- tip: 🛡️ auth for agents: https://vestauth.com
|
||||
DisTubeError [INVALID_KEY]: 'ffmpegPath' does not need to be provided in DisTubeOptions
|
||||
at checkInvalidKey (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1288:25)
|
||||
at new Options (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1692:5)
|
||||
at new DisTube (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:2281:20)
|
||||
at Object.<anonymous> (/home/ubuntu/executor/workspace/bot/index.js:48:17)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14)
|
||||
at Object..js (node:internal/modules/cjs/loader:1820:10)
|
||||
at Module.load (node:internal/modules/cjs/loader:1423:32)
|
||||
at Function._load (node:internal/modules/cjs/loader:1246:12)
|
||||
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14) {
|
||||
errorCode: 'INVALID_KEY'
|
||||
}
|
||||
[dotenv@17.3.1] injecting env (4) from .env -- tip: ⚡️ secrets for agents: https://dotenvx.com/as2
|
||||
DisTubeError [INVALID_KEY]: 'ffmpegPath' does not need to be provided in DisTubeOptions
|
||||
at checkInvalidKey (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1288:25)
|
||||
at new Options (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1692:5)
|
||||
at new DisTube (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:2281:20)
|
||||
at Object.<anonymous> (/home/ubuntu/executor/workspace/bot/index.js:48:17)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14)
|
||||
at Object..js (node:internal/modules/cjs/loader:1820:10)
|
||||
at Module.load (node:internal/modules/cjs/loader:1423:32)
|
||||
at Function._load (node:internal/modules/cjs/loader:1246:12)
|
||||
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14) {
|
||||
errorCode: 'INVALID_KEY'
|
||||
}
|
||||
[dotenv@17.3.1] injecting env (4) from .env -- tip: 🛠️ run anywhere with `dotenvx run -- yourcommand`
|
||||
DisTubeError [INVALID_KEY]: 'ffmpegPath' does not need to be provided in DisTubeOptions
|
||||
at checkInvalidKey (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1288:25)
|
||||
at new Options (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1692:5)
|
||||
at new DisTube (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:2281:20)
|
||||
at Object.<anonymous> (/home/ubuntu/executor/workspace/bot/index.js:48:17)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14)
|
||||
at Object..js (node:internal/modules/cjs/loader:1820:10)
|
||||
at Module.load (node:internal/modules/cjs/loader:1423:32)
|
||||
at Function._load (node:internal/modules/cjs/loader:1246:12)
|
||||
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14) {
|
||||
errorCode: 'INVALID_KEY'
|
||||
}
|
||||
[dotenv@17.3.1] injecting env (4) from .env -- tip: ⚙️ override existing env vars with { override: true }
|
||||
DisTubeError [INVALID_KEY]: 'ffmpegPath' does not need to be provided in DisTubeOptions
|
||||
at checkInvalidKey (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1288:25)
|
||||
at new Options (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1692:5)
|
||||
at new DisTube (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:2281:20)
|
||||
at Object.<anonymous> (/home/ubuntu/executor/workspace/bot/index.js:48:17)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14)
|
||||
at Object..js (node:internal/modules/cjs/loader:1820:10)
|
||||
at Module.load (node:internal/modules/cjs/loader:1423:32)
|
||||
at Function._load (node:internal/modules/cjs/loader:1246:12)
|
||||
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14) {
|
||||
errorCode: 'INVALID_KEY'
|
||||
}
|
||||
[dotenv@17.3.1] injecting env (4) from .env -- tip: ⚙️ specify custom .env file path with { path: '/custom/path/.env' }
|
||||
DisTubeError [INVALID_KEY]: 'ffmpegPath' does not need to be provided in DisTubeOptions
|
||||
at checkInvalidKey (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1288:25)
|
||||
at new Options (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1692:5)
|
||||
at new DisTube (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:2281:20)
|
||||
at Object.<anonymous> (/home/ubuntu/executor/workspace/bot/index.js:48:17)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14)
|
||||
at Object..js (node:internal/modules/cjs/loader:1820:10)
|
||||
at Module.load (node:internal/modules/cjs/loader:1423:32)
|
||||
at Function._load (node:internal/modules/cjs/loader:1246:12)
|
||||
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14) {
|
||||
errorCode: 'INVALID_KEY'
|
||||
}
|
||||
[dotenv@17.3.1] injecting env (4) from .env -- tip: 🔐 prevent building .env in docker: https://dotenvx.com/prebuild
|
||||
DisTubeError [INVALID_KEY]: 'ffmpegPath' does not need to be provided in DisTubeOptions
|
||||
at checkInvalidKey (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1288:25)
|
||||
at new Options (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1692:5)
|
||||
at new DisTube (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:2281:20)
|
||||
at Object.<anonymous> (/home/ubuntu/executor/workspace/bot/index.js:48:17)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14)
|
||||
at Object..js (node:internal/modules/cjs/loader:1820:10)
|
||||
at Module.load (node:internal/modules/cjs/loader:1423:32)
|
||||
at Function._load (node:internal/modules/cjs/loader:1246:12)
|
||||
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14) {
|
||||
errorCode: 'INVALID_KEY'
|
||||
}
|
||||
[dotenv@17.3.1] injecting env (4) from .env -- tip: ⚙️ override existing env vars with { override: true }
|
||||
DisTubeError [INVALID_KEY]: 'ffmpegPath' does not need to be provided in DisTubeOptions
|
||||
at checkInvalidKey (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1288:25)
|
||||
at new Options (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1692:5)
|
||||
at new DisTube (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:2281:20)
|
||||
at Object.<anonymous> (/home/ubuntu/executor/workspace/bot/index.js:48:17)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14)
|
||||
at Object..js (node:internal/modules/cjs/loader:1820:10)
|
||||
at Module.load (node:internal/modules/cjs/loader:1423:32)
|
||||
at Function._load (node:internal/modules/cjs/loader:1246:12)
|
||||
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14) {
|
||||
errorCode: 'INVALID_KEY'
|
||||
}
|
||||
[dotenv@17.3.1] injecting env (4) from .env -- tip: ⚙️ override existing env vars with { override: true }
|
||||
DisTubeError [INVALID_KEY]: 'ffmpegPath' does not need to be provided in DisTubeOptions
|
||||
at checkInvalidKey (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1288:25)
|
||||
at new Options (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:1692:5)
|
||||
at new DisTube (/home/ubuntu/executor/workspace/bot/node_modules/distube/dist/index.js:2281:20)
|
||||
at Object.<anonymous> (/home/ubuntu/executor/workspace/bot/index.js:48:17)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14)
|
||||
at Object..js (node:internal/modules/cjs/loader:1820:10)
|
||||
at Module.load (node:internal/modules/cjs/loader:1423:32)
|
||||
at Function._load (node:internal/modules/cjs/loader:1246:12)
|
||||
at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
|
||||
at Module._compile (node:internal/modules/cjs/loader:1688:14) {
|
||||
errorCode: 'INVALID_KEY'
|
||||
}
|
||||
[dotenv@17.3.1] injecting env (4) from .env -- tip: ⚙️ override existing env vars with { override: true }
|
||||
[2026-02-16T08:21:39.827Z] Encryption library (libsodium) is ready.
|
||||
Encryption library (libsodium) is ready.
|
||||
[2026-02-16T08:21:41.582Z] Bot berhasil login!
|
||||
Bot berhasil login!
|
||||
[2026-02-16T08:21:41.589Z] Ready! Logged in as AsepXiaoQin#6954
|
||||
Ready! Logged in as AsepXiaoQin#6954
|
||||
[2026-02-16T08:21:41.816Z] FFMPEG Path: /home/ubuntu/executor/workspace/bot/node_modules/ffmpeg-static/ffmpeg
|
||||
FFMPEG Path: /home/ubuntu/executor/workspace/bot/node_modules/ffmpeg-static/ffmpeg
|
||||
[2026-02-16T08:21:42.574Z] Alarm scheduled at 30 3 * * *
|
||||
Alarm scheduled at 30 3 * * *
|
||||
|
||||
@ -7,7 +7,8 @@ const {
|
||||
joinVoiceChannel,
|
||||
createAudioPlayer,
|
||||
createAudioResource,
|
||||
AudioPlayerStatus
|
||||
AudioPlayerStatus,
|
||||
StreamType
|
||||
} = require('@discordjs/voice');
|
||||
const { CronJob } = require('cron');
|
||||
const path = require('path');
|
||||
@ -45,12 +46,12 @@ try {
|
||||
}
|
||||
|
||||
const distube = new DisTube(client, {
|
||||
emitNewSongOnly: true,
|
||||
plugins: [
|
||||
new SoundCloudPlugin(),
|
||||
new SpotifyPlugin(),
|
||||
new YtDlpPlugin(),
|
||||
],
|
||||
emitNewSongOnly: true,
|
||||
emitAddSongWhenCreatingQueue: false,
|
||||
});
|
||||
|
||||
@ -85,7 +86,9 @@ async function playLocalIndependent(channel) {
|
||||
});
|
||||
|
||||
const player = createAudioPlayer();
|
||||
const resource = createAudioResource(AUDIO_PATH);
|
||||
const resource = createAudioResource(AUDIO_PATH, {
|
||||
inputType: StreamType.Arbitrary
|
||||
});
|
||||
|
||||
player.play(resource);
|
||||
connection.subscribe(player);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user