mh1723
mh1723
Explore posts from servers
RRailway
Created by mh1723 on 11/13/2023 in #✋|help
setting up discord bot with mongodb Atlas
Hello All, Like many here I am new to all of this. Im setting a discord bot, I have it running on my windows laptop. I deployed from github when setting it up and created the env variables in railway. I am getting this error from railway log:
Failed to connect to MongoDB: MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
Failed to connect to MongoDB: MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
My current token for is: "mongodb+srv://atlasinfo.mongodb.net/?retryWrites=true&w=majority" the atlasinfo is not what is actually in the token. I saw another post here about having to add all the ip's for railway to Atlas whitelist, which I did. Edit: I had also added 0.0.0.0 and no luck there.
17 replies
DIAdiscord.js - Imagine an app
Created by mh1723 on 8/28/2023 in #djs-questions
Randomly Fails at creating roles
I am very new to all of this. Im trying to create roles based on array of objects, meaning the object's name. This was working rather well before. Im not sure what I changed but it seems to fail during the guild.roles.create. Sometimes I get one role, other times I get 5 roles created. All of my passed objects exist and are defined. codeFlow, is just a function that prints to console.
10 replies