Skip to content

Discord bot that can wake a device with Wake-On-Lan

License

Notifications You must be signed in to change notification settings

testsnake/WOL-Discord

Repository files navigation

WOL-Discord

WOL-Discord is a TypeScript Discord bot that allows for waking up devices using Wake-On-Lan (WOL)

Setup

Install dependencies

npm install
# or
pnpm install

Create a new file called .env and add a Discord bot token

DISCORD_BOT_TOKEN=YOUR_DISCORD_BOT_TOKEN

Configure the device settings in devices.json

{
    "list": [
        {
            "id": "1",
            "name": "Desktop",
            "network": {
                "macAddress": "00:00:00:00:00:00",
                "ipAddress": "192.168.1.2"
            },
            "permittedUsers": [
                {
                    "id": "308994132968210433",
                    "permissions": {
                        "wol": true,
                        "ping": true
                    }
                }
            ]
        }
    ]
}

Build and run

npm run build:start
# or
npm run build
npm run start

About

Discord bot that can wake a device with Wake-On-Lan

Topics

Resources

License

Stars

Watchers

Forks