Step-by-step instructions to get the bot running on your laptop
botAdministratorOpen PowerShell/Command Prompt and run:
git clone https://github.com/Naveen022006/laptop-control-application.git
cd laptop-control-application
Or download the ZIP directly from GitHub and extract it.
Open PowerShell in the bot directory and run:
python -m venv venv
Activate the virtual environment:
.\venv\Scripts\activate
You should see (venv) at the beginning of your command prompt.
With the virtual environment activated, run:
pip install -r requirements.txt
This installs all necessary Python packages.
Create a .env file in the main directory with:
DISCORD_TOKEN=your_bot_token_here
AUTHORIZED_USERS=your_user_id_here
Example:
DISCORD_TOKEN=MTk4NjIyNDgzNzA=.ClssqA.1234567890
AUTHORIZED_USERS=123456789012345678
To find your User ID:
Make sure your virtual environment is activated, then run:
python bot.py
You should see output like:
Logged in as YourBotName (123456789)
------
Bot is ready to receive commands.
Go to your Discord server and try a command:
!screenshot
The bot should respond with a screenshot of your laptop.
!sysinfo or !speak "Hello"
AUTHORIZED_USERS.\venv\Scripts\activatepip install -r requirements.txtpython --version!chrome_search)Use the included setup_startup.py script:
python setup_startup.py
This will set up the bot to run automatically when your laptop starts.
Add multiple user IDs separated by commas in .env:
AUTHORIZED_USERS=123456789,987654321,111222333