Search code examples
serverraspberry-pibotsraspberry-pi3discord.js

Sending computer info to discord bot


I'm trying to make a command that sends my computer (Raspberry Pi 3) info to my discord bot.

I've tried searching the same question but can't find anything.

My bot is currently working on the Raspberry Pi and have Node.JS installed.

How would I try and accomplish this?


Solution

  • Take a look at the Node.js documentation on the os module. You might find the "info" you're looking for accessible through it.

    The os module provides operating system-related utility methods and properties. It can be accessed using:

    const os = require('os');