Global commands & Connecting to a Database | Typescript Discord.JS Series | #4

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 6

  • @geodix2140
    @geodix2140 Год назад

    Hey man!! Tysm for making these turorials❤❤❤

  • @foreveronestepahead
    @foreveronestepahead Год назад

    OMG TYSM FOR THIS TUTORIAL!! If I'm not mistaken then this is OOP, tysm bro

  • @JouriRoosjen
    @JouriRoosjen 7 месяцев назад +1

    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?

    • @spikethatmike
      @spikethatmike  6 месяцев назад

      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)

  • @Kyanoxia
    @Kyanoxia 27 дней назад

    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?