CodingTrain / Discord-Bot-Examples

Bot Examples for Fall 2023
20 stars 7 forks source link

Update dotenv import to just import the config function #13

Closed supercrafter100 closed 1 year ago

supercrafter100 commented 1 year ago

In this section of the example code: https://github.com/Programming-from-A-to-Z/Discord-Bot-Examples/blob/ac8ee1ebf1a3199c302f8ee38f6fc177998df08f/01-discordjs/deploy-commands.js#L6-L9 we are only importing the config function and calling it from dotenv. To keep consistent through the code, I replaced this in the readme as well.

shiffman commented 1 year ago

This is great, thank you! (I have already recorded some video tutorials which will probably show the other way but glad to update and fix here!)

dipamsen commented 1 year ago

@supercrafter100 i think it is still the other way in bot.js?

supercrafter100 commented 1 year ago

Ah did I miss it there? I'll quickly fix that if so 😅