How to use skyra env utilities with the cli generated project?

I want to use env variables to store my mongo uri, but due to skyra utilities being their i cant use dotenv How am i supposed to use it?
MONGO=URI
MONGO=URI
F
Favna418d ago
@Skyra/env-utilities is a small wrapper around dotenv-cra, dotenv-expand and dotenv. You use it exactly like you have it there, or use the utility methods of envParseString and such
MM
Mrm Mia418d ago
the thing, without changing any code, eg: not adding the mongo: string in setup.ts, and using process.env.MONGO returns undefined and still using it like shown above i still get undefined
F
Favna418d ago
Do you actually have a file named .env in your src directory though?
MM
Mrm Mia418d ago
yes thats where my token is stored token works fine oh wait works fine now
F
Favna418d ago
Idk then. Verify all your code and all your files more thoroughly, make sure casing is correct, log the entire process.env to find any issues Did you just not rebuild or something 💀
MM
Mrm Mia418d ago
No i just restart 3 times js ig 💀
Want results from more Discord servers?
Add your server
More Posts
How to get the current channel a slash command was used inI took a look at the following post https://discord.com/channels/737141877803057244/1061609301556346Preventing Commands in DMsHow do you prevent commands from being used in DMs? Message commands.autoModerationActionExecution EventDoes Sapphire not emit the Discord.js `autoModerationActionExecution` event? The following code doeHelp canceling a commandHere the code I have for a simple reminder command.https://pastebin.com/crRSdjEn. It works but id liHow to check if the bot has Permission X inside of the server? For example VIEW_AUDIT_LOGIn a listenerWhat parameter do I pass to the run method in my GuildCreate listener?Problem with this.container.stores.get().get();Code:InteractionCreate fileCan I easily create a listener for `interactionCreate`? I need it for some UI Abilities, and I am noHow to Create Threads?I dont get how to create threads programmatically. Please helpCommand infodoes sapphire have a built in command info funtions so we can get for example the aliases of a commaargs.pick("member")using `args.pick("member")`, is it intended to get the member even if you just provide 1 letter of twhy does this not work in sapphireindex.js ```js const { util } = require("./utils"); const { container } = require("@sapphire/framewoThis code is not running on sapphire```js const { Listener } = require("@sapphire/framework"); const { ActivityType } = require("discordBot stalls while registering commandsMy bot was working fine yesterday after noticing the new Cog section of the documentation (really coHow to edit an Embed(Documentation isn't working)Hi. Trying to make a discord bot that will send a message to a specific channel on startup. I have Schdeduler SQS Options in index.tsWhere can I find what options I have to pass for the SQS Version of the Scheduled Task? I cant seemType T[P] does not satisfy constraint Option<any>When building my project on my ubuntu server, with tsc, I get those errors, its more a TS issue thanWill using the new plugin-utilities-store enable HMR for this Helper files?As stated in the title: If i add some functions to the util store will they be reloaded on change wi"Send" does not exist on type "channel"Hi. Trying to make a discord bot that will send a message to a specific channel on startup. I try tHow can I create a listener for @discordjs/voice states?Title kinda explains itself lol, but how can I convert things like ```javascript const { VoiceConnec