Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.38 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.38 KB

Discord Bot for Command Execution

A Python-based Discord bot is designed to wait for commands on a Discord server and execute them on the machine where the bot is running. Only tested on Windows operating systems.

Features

  • Startup Notification: Sends a message to a specified Discord channel upon startup, indicating the user logged into Windows. It is necessary to configure the script to run at windows startup.
  • Command Execution: Executes system commands received via Discord messages and returns the output directly to the channel.
  • Message Handling: Responds to specific text commands (e.g., !cmd <command>) and replies with command results or error messages.
  • Command Output Handling: The bot handles command outputs. If the result exceeds 2000 characters, it saves the output to a file and sends it as an attachment.

Requirements

  • Python 3.x
  • discord.py library

Configuration

  1. Token: Replace the token variable in the script with your own Discord bot token.
  2. Channel ID: Update the channel_id variable with the ID of the Discord channel where the startup message will be sent.

Disclaimer

I am not responsible for any misuse of this bot. The user assumes all responsibility for ensuring that the bot is used in a lawful and appropriate manner.

License

This project is licensed under the MIT License - see the LICENSE file for details.