Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/invranet/discord-sysmgmt

Discord bot to manage Linux, macOS, or Windows devices. (why thouugh)
https://github.com/invranet/discord-sysmgmt

Last synced: about 2 months ago
JSON representation

Discord bot to manage Linux, macOS, or Windows devices. (why thouugh)

Awesome Lists containing this project

README

        

# Discord System Management Bot

This discord bot is available to execute commands to the host of the bot, this includes:
* Keystroke tool (Linux only so far.)
* Screenshotting
* Information about hot/ device in question
* Launch tool (execution of apps, on windows is includes any file type with an assigned application.)

# Images
![sh](https://github.com/user-attachments/assets/c67742ee-024c-4797-91c4-6f64199f697c)

Image of Screenshot command ran off a macOS host.

![image](https://github.com/user-attachments/assets/4c5d72f8-7aca-4210-b811-a613c79cd64c)

Screenshot of Page 1 of (6) of macOS host's specs.

## Development target
This Discord bot will primarily be developed on Linux, specifically in a Wayland environment, so most focus will be given to that setup. Next, I’ll work on a Windows 10 machine, followed by an X11 Linux environment. Finally, I’ll tackle development on an Intel macOS setup (not Arm64®), only if I liked using my mac (and I don't) so expect now much support, Mac users...

## Setup Instructions
To build and run the Discord bot on your device, follow these steps:

1. **Initialize Yarn**: Start by initializing Yarn in your project directory. Run:
```bash
yarn init -y
```

2. **Create Your Bot**: Go to the [Discord Developer Portal](https://discord.com/developers/applications) to create a new bot. Once created, copy the **TOKEN** provided.

3. **Create a .env File**: In the root of your project, create a `.env` file with the following variables:
```
DISCORD_TOKEN=YOUR_TOKEN_YOU_COPIED
PREFIX=YOUR_CHOSEN_COMMAND_PREFIX
```
*Note: Do not wrap the values in quotes, as environment variables are assumed to be strings and can only be strings.*

5. **Run the Bot**: Finally, to start your bot, run:
```bash
yarn start
```
Follow these steps, and your bot should be up and running!