Closed Owned67 closed 2 days ago
Hey! Sorry about that, looks like I forgot to push the config.json
file.
You’ll need to create it yourself. Here’s what you should add:
{
"token": "your_discord_bot_token",
"mongoKey": "your_mongo_db_uri"
}
Make sure to replace "your_discord_bot_token"
with your bot token and "your_mongo_db_uri"
with your MongoDB connection string.
for token bot i know but for mongodb, not ❌ ive added mongorestore --uri mongodb+srv://login:pass@cluster0.keo1pdo.mongodb.net but fail :x
all good for that :) done thanks!
Nw, But just so you know, you accidentally showed your key in this comment. Please change it right away and don't share your keys publicly in the future.
what, i don't have shared my key?!!! ❌
Nvm
node index Loaded All Events MongooseError: The
uriparameter to
openUri()must be a string, got "undefined". Make sure the first parameter to
mongoose.connect()or
mongoose.createConnection()is a string. at NativeConnection.createClient (F:\rust\Bot Rust\tem-bot-main\node_modules\mongoose\lib\drivers\node-mongodb-native\connection.js:206:11) at NativeConnection.openUri (F:\rust\Bot Rust\tem-bot-main\node_modules\mongoose\lib\connection.js:766:34) at Mongoose.connect (F:\rust\Bot Rust\tem-bot-main\node_modules\mongoose\lib\index.js:416:15) at Object.<anonymous> (F:\rust\Bot Rust\tem-bot-main\index.js:34:4) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 Ready! Logged in as BackupBot#7388 Loaded And Registered All Commands.