Installation
Let's get this garbage library installed!
Last updated
Let's get this garbage library installed!
Last updated
Detritus doesn't have a whole lot of complex dependencies, in fact, it's one of the smallest set of dependencies I've seen in what I can only call a "large library". 64 total node_modules
dependencies is really pretty small.
Detritus is a NodeJS library, which means you must have node installed on your machine. You can download it from nodejs.org , or install it using whatever package manager you might have. Make sure however, that you're using a modern version of node - that means Node 14.x or higher.
As a developer I can tell you that an important thing is that you make sure you've got a clean working area. That means, create a brand new folder on your hard drive where you'll be creating your bot project. Personally I highly recommend having a folder dedicated to your projects, something like C:\devel or D:\projects or something like that. There's technical reasons for this too that you don't quite need to worry about, but that's how I do it. Create a folder for your bot in that parent folder, so we have something like C:\devel\trashbot\ as a folder.
Once you've done that, it's also ideal to initialize the project with npm init --y
which will create a package.json file. If you don't already know this, explaining the package.json is beyond the scope of this guide but just know that it should be there in your project folder!
With your brand new empty folder and your package.json ready to go, you only have one command to run to install the library.
New to programming and on Windows? You can open a terminal in your project by doing SHIFT+RIGHT-CLICK in an empty folder and then click "Open Powershell window here" to get the window you need!
Great! After a few moments, the library will be installed!