You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have my tokens in what I believe is the correct location and they aren't being referenced. I'm a little stumped on where to go from here. Any help is appreciated.
Steps Taken (for everything after download):
installed npm install @prisma/client
installed npm client dotenv
renamed .env.example to .env and added the required tokens (file is in the same location)
(node:125012) ExperimentalWarning: --experimental-loader may be removed in the future; instead use register():
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///C%3A/Users/sedef/Downloads/muse-master%2520(1)/muse-master/node_modules/tsx/dist/loader.js", pathToFileURL("./"));'
(Use node --trace-warnings ... to show where the warning was created)
(node:134520) ExperimentalWarning: --experimental-loader may be removed in the future; instead use register():
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///C%3A/Users/sedef/Downloads/muse-master%2520(1)/muse-master/node_modules/tsx/dist/loader.js", pathToFileURL("./"));'
(Use node --trace-warnings ... to show where the warning was created)
✔ Database migrations applied.
⠋ 📡 connecting to Discord...C:\Users\sedef\Downloads\muse-master (1)\muse-master\node_modules\discord.js\src\client\Client.js:214
if (!token || typeof token !== 'string') throw new DiscordjsError(ErrorCodes.TokenInvalid);
^
Error [TokenInvalid]: An invalid token was provided.
at Client.login (C:\Users\sedef\Downloads\muse-master (1)\muse-master\node_modules\discord.js\src\client\Client.js:214:52)
at bot_default.register (file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/src/bot.ts:1:4458)
at startBot (file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/src/index.ts:1:393)
at async file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/src/scripts/migrate-and-start.ts:1:1633 {
code: 'TokenInvalid'
}
Node.js v20.17.0
file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/node_modules/execa/lib/error.js:59
error = new Error(message);
^
Error: Command failed with exit code 1: tsx src/scripts/migrate-and-start.ts
at makeError (file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/node_modules/execa/lib/error.js:59:11)
at handlePromise (file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/node_modules/execa/index.js:119:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/src/scripts/run-with-database-url.ts:1:143 {
shortMessage: 'Command failed with exit code 1: tsx src/scripts/migrate-and-start.ts',
command: 'tsx src/scripts/migrate-and-start.ts',
escapedCommand: 'tsx "src/scripts/migrate-and-start.ts"',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have my tokens in what I believe is the correct location and they aren't being referenced. I'm a little stumped on where to go from here. Any help is appreciated.
Steps Taken (for everything after download):
Terminal:
PS C:\Users\sedef\Downloads\muse-master (1)\muse-master> npm start --trace-warnings
(node:125012) ExperimentalWarning:
--experimental-loader
may be removed in the future; instead useregister()
:--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///C%3A/Users/sedef/Downloads/muse-master%2520(1)/muse-master/node_modules/tsx/dist/loader.js", pathToFileURL("./"));'
(Use
node --trace-warnings ...
to show where the warning was created)(node:134520) ExperimentalWarning:
--experimental-loader
may be removed in the future; instead useregister()
:--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("file%3A///C%3A/Users/sedef/Downloads/muse-master%2520(1)/muse-master/node_modules/tsx/dist/loader.js", pathToFileURL("./"));'
(Use
node --trace-warnings ...
to show where the warning was created)========================================
================= muse =================
=========== Made with 🎶 by ============
==== https://github.com/codetheweb =====
========================================
Running version 2.9.4 built on unknown date (commit unknown)
🔧 Need help? https://github.com/codetheweb/muse/discussions/new
🐛 Bug? https://github.com/codetheweb/muse/issues/new
✨ New feature? https://github.com/codetheweb/muse/issues/new
☕ Discussion? https://github.com/codetheweb/muse/discussions/new
💰 Help me? https://www.paypal.me/codetheweb https://github.com/sponsors/codetheweb
✔ Database migrations applied.
⠋ 📡 connecting to Discord...C:\Users\sedef\Downloads\muse-master (1)\muse-master\node_modules\discord.js\src\client\Client.js:214
if (!token || typeof token !== 'string') throw new DiscordjsError(ErrorCodes.TokenInvalid);
^
Error [TokenInvalid]: An invalid token was provided.
at Client.login (C:\Users\sedef\Downloads\muse-master (1)\muse-master\node_modules\discord.js\src\client\Client.js:214:52)
at bot_default.register (file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/src/bot.ts:1:4458)
at startBot (file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/src/index.ts:1:393)
at async file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/src/scripts/migrate-and-start.ts:1:1633 {
code: 'TokenInvalid'
}
Node.js v20.17.0
file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/node_modules/execa/lib/error.js:59
error = new Error(message);
^
Error: Command failed with exit code 1: tsx src/scripts/migrate-and-start.ts
at makeError (file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/node_modules/execa/lib/error.js:59:11)
at handlePromise (file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/node_modules/execa/index.js:119:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///C:/Users/sedef/Downloads/muse-master%20(1)/muse-master/src/scripts/run-with-database-url.ts:1:143 {
shortMessage: 'Command failed with exit code 1: tsx src/scripts/migrate-and-start.ts',
command: 'tsx src/scripts/migrate-and-start.ts',
escapedCommand: 'tsx "src/scripts/migrate-and-start.ts"',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: undefined,
stderr: undefined,
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
Node.js v20.17.0
PS C:\Users\sedef\Downloads\muse-master (1)\muse-master>
Beta Was this translation helpful? Give feedback.
All reactions