You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-3Lines changed: 37 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Discord Windows Controller Bot
2
2
3
-
The Discord Windows Controller Bot is a Python bot designed to control Windows operations through Discord commands. It can perform tasks like locking your workstation and monitoring mouse movement in a specified channel. Follow these steps to set up and run the bot.
3
+
The Discord Windows Controller Bot is a Python bot designed to control Windows operations through Discord commands. It can perform tasks like locking your workstation and monitoring mouse movement in a specified channel as well as saving files you send to the local workstation. Follow these steps to set up and run the bot.
4
4
5
5
## Step 1: Clone the Repository
6
6
@@ -45,6 +45,38 @@ Install the necessary libraries for your bot using the following command:
45
45
pip install -r requirements.txt
46
46
```
47
47
48
+
### Troubleshooting Installation Errors
49
+
50
+
If you encounter an error message similar to the following:
51
+
52
+
```
53
+
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
54
+
```
55
+
56
+
This error occurs because some packages require compilation, and your system is missing the necessary tools. To resolve this:
57
+
58
+
1. Install Microsoft Visual C++ Build Tools:
59
+
- Go to https://visualstudio.microsoft.com/visual-cpp-build-tools/
60
+
- Download and run the installer
61
+
- In the installer, select "C++ build tools" and install it
62
+
63
+
2. After installation, restart your computer.
64
+
65
+
3. Try running the pip install command again:
66
+
67
+
```bash
68
+
pip install -r requirements.txt
69
+
```
70
+
71
+
If you still face issues, try the following:
72
+
73
+
- Update pip and setuptools:
74
+
```bash
75
+
pip install --upgrade pip setuptools wheel
76
+
```
77
+
78
+
- If problems persist, please open an issue on the GitHub repository for further assistance.
79
+
48
80
## Step 5: Create a Discord Bot
49
81
50
82
1. Go to the Discord Developer Portal: [Discord Developer Portal](https://discord.com/developers/applications)
@@ -65,6 +97,7 @@ pip install -r requirements.txt
65
97
1. In the project folder, create a text file named "key.txt."
66
98
2. Paste the copied bot token into the "key.txt" file and save it.
67
99
3. Get your Channel ID and your own ID from Discord, and paste them into the "config.json" file.
100
+
4. Create a folder where you would want the files to be saved to locally, and copy the path to the `file_save_path` variable
68
101
69
102
Example:
70
103
@@ -73,7 +106,8 @@ Example:
73
106
"command_channel_id": 1137276176451079374,
74
107
"author_id": 637917562920429309,
75
108
"log_channel_id": 1137693326543122128,
76
-
"mouse_log_channel_id": 1137693326543123128
109
+
"mouse_log_channel_id": 1137693326543123128,
110
+
"file_save_path": "insert/file/path"
77
111
}
78
112
```
79
113
@@ -100,4 +134,4 @@ Example:
100
134
## Step 9: Test the Functionality
101
135
102
136
1. In the server where your bot is added, send a message with the content "lock" in the designated channel.
103
-
2. The bot should respond by locking the workstation and sending a confirmation message.
137
+
2. The bot should respond by locking the workstation and sending a confirmation message.
0 commit comments