Code Monkey home page Code Monkey logo

wakeonlan-bot's Introduction

WakeOnLAN-Bot

My fork lets the bot keep trying for connection if no connection is immediately made (my RPi took a little longer to startup while pm2 already started this node). Also fixed some substitution bugs where it wouldn't run. Not all functions are working correct, but wake does work nicely.

The rest of tarun5060s readme:


This is a simple Discord bot that can be used to wake up a computer using Wake-On-LAN (WOL). It also includes some additional commands such as ping and uptime, and the ability to evaluate and execute arbitrary code. Big thanks to m4 for helping me with the JS part.

Installation

  1. Clone the repository: git clone https://github.com/tarun5060/WakeOnLAN-Bot
  2. Install dependencies: npm install
  3. Update the config.json file with the following fields:
    • ownerID: The Discord user ID of the bot owner
    • token: Your Discord bot token
    • ipAddress: The IP address of the computer you want to wake up
    • macAddress: The MAC address of the network interface on the computer you want to wake up
  4. Run the bot: node index.js

Usage

Once the bot is running, you can use the following commands:

  • wake: Sends a WOL magic packet to wake up the computer*
  • ping: Displays the bot's latency and the API latency
  • uptime: Displays the bot's uptime in hours
  • eval: Evaluates JavaScript code*
  • exec: Executes a shell command*
  • status: Pings the computer and displays the result*

*owner only

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Contact & Support

If you encounter a bug or an issue, feel free to reach me

If you wish to support me and this project, you can do so here. Appreciate it :)

wakeonlan-bot's People

Contributors

diebolo avatar tarun5060 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.