Build A Bot (DiscordJS) — Better Logging And A Persistent Bot Config

Better logging

npm i -S winston chalk

Read & Write Configs

npm i -S jsonfile mkdirp opn

1) Setting the config directory

2) Run it once initially

3) Open generated config files for proofreading

4) Check the configSchema

5) The big one, loadConfig

ALPHA

BETA

GAMMA

DELTA

EPSILON

Wrapping up

Some words about me:

--

--

--

I’m a Web / App Developer & father 👨‍👩‍👧 doing freelance and part-time agency work since 2003, 💻 building stuff on the side 🕹 and attending conferences 🎟

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Cache Bust a React App?

The way to optimize calculations of a custom pure angular pipe by memoization.

Step 1.

Beginner’s Guide to Load Testing with k6

Using React Portals to generate print sets

//platform.twitter.com/widgets.js from Twitter https://twitter.com/iconbuildgroup

Quick start: ASP.Net Core 3.1 EF Core CQRS React JS Series part 6: hateoas and options usage

Laravel Basic | How to install Bootstrap in Laravel?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Konrad Abe

Konrad Abe

I’m a Web / App Developer & father 👨‍👩‍👧 doing freelance and part-time agency work since 2003, 💻 building stuff on the side 🕹 and attending conferences 🎟

More from Medium

Roadmap to build first Web Application

How to build a Lightning Authentication Api from scratch

Kickstart Your Embedded Projects With ESP32 and PlatformIO

Term Paper 2022 Node js