Hey man, great tutorials so far! I'm just curious about one thing I noticed. Why decide to go through the hassle of maintaining a config.ts file and having all these different dev variables and checks to see if dev mode is on. Why not just use an environment file? That would make it so much easier to work with than this in my opinion, and also it's kind of the reason why environment files exist. So what I'm trying to ask is, why did you choose to do it this way?
Not sure tbh, I've just always used json files for configs when using JS & TS Personally for basic tutorials like these json files are fine but if you had a proper setup for the bot aka a prod and dev server - I would strongly recommended using an env file then you can securely store them on each server independent from each other & then you dont need to keep them within the project files / source controll (which is best practice when it comes to security)
If the bot joins a server when it's offline, the join event does not get triggered. Is there a way to remedy this? Maybe check what servers the bot is in?
Hey man!! Tysm for making these turorials❤❤❤
OMG TYSM FOR THIS TUTORIAL!! If I'm not mistaken then this is OOP, tysm bro
Hey man, great tutorials so far! I'm just curious about one thing I noticed. Why decide to go through the hassle of maintaining a config.ts file and having all these different dev variables and checks to see if dev mode is on. Why not just use an environment file? That would make it so much easier to work with than this in my opinion, and also it's kind of the reason why environment files exist. So what I'm trying to ask is, why did you choose to do it this way?
Not sure tbh, I've just always used json files for configs when using JS & TS
Personally for basic tutorials like these json files are fine but if you had a proper setup for the bot aka a prod and dev server - I would strongly recommended using an env file then you can securely store them on each server independent from each other & then you dont need to keep them within the project files / source controll (which is best practice when it comes to security)
If the bot joins a server when it's offline, the join event does not get triggered. Is there a way to remedy this? Maybe check what servers the bot is in?